From: Ashley Pond V Date: Thu, 3 Jul 2008 03:42:05 +0000 (+0000) Subject: This is 0.05. X-Git-Tag: v0.05^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Authentication-Credential-OpenID.git;a=commitdiff_plain;h=ab944aad7e42f6a33f1338b8c648cc14df6e53de This is 0.05. --- diff --git a/Changes b/Changes index 7bcd220..d54bae1 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,12 @@ Revision history for Catalyst::Authentication::Credential::OpenID +0.05 Wed Jul 2 20:17:21 PDT 2008 + - Removed UNIVERSAL::require to shrink prereqs and protect + namespaces. + - Turned on test app tests. I want to know if it's failing for + others. + - Swapped LWPx::ParanoidAgent for LWP::UA in the test. + 0.04 Thu Jun 19 23:20:00 PDT 2008 - Fixed some of the .conf example. Sigh. - Other minor Pod tweaks. diff --git a/Makefile.PL b/Makefile.PL index 3aa310c..dd0a957 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,6 +2,7 @@ use inc::Module::Install; name "Catalyst-Authentication-Credential-OpenID"; all_from "lib/Catalyst/Authentication/Credential/OpenID.pm"; +author "Ashley Pond V "; requires "parent" => "0.2"; requires "Class::Accessor::Fast" => 0; @@ -9,7 +10,6 @@ requires "Catalyst::Runtime" => "5.7"; requires "Crypt::DH" => "0.05"; # IIRC OpenID stuff forgets to prereq this requires "Net::OpenID::Consumer" => "0.14"; requires "Catalyst::Exception" => 0; -requires "UNIVERSAL::require" => 0; requires "Catalyst::Authentication::User::Hash" => 0; recommends "Config::General" => "2"; diff --git a/lib/Catalyst/Authentication/Credential/OpenID.pm b/lib/Catalyst/Authentication/Credential/OpenID.pm index 477b9e7..82678d8 100644 --- a/lib/Catalyst/Authentication/Credential/OpenID.pm +++ b/lib/Catalyst/Authentication/Credential/OpenID.pm @@ -8,10 +8,9 @@ BEGIN { __PACKAGE__->mk_accessors(qw/ _config realm debug secret /); } -our $VERSION = "0.04"; +our $VERSION = "0.05"; use Net::OpenID::Consumer; -use UNIVERSAL::require; use Catalyst::Exception (); sub new : method { @@ -37,11 +36,10 @@ sub new : method { $self->secret( $secret ); $self->_config->{ua_class} ||= "LWPx::ParanoidAgent"; - eval { - $self->_config->{ua_class}->require; - } - or Catalyst::Exception->throw("Could not 'require' user agent class " . - $self->_config->{ua_class}); + my $agent_class = $self->_config->{ua_class}; + eval "require $agent_class" + or Catalyst::Exception->throw("Could not 'require' user agent class " . + $self->_config->{ua_class}); $c->log->debug("Setting consumer secret: " . $secret) if $self->debug; @@ -126,15 +124,15 @@ __END__ =head1 NAME -Catalyst::Authentication::Credential::OpenID - OpenID credential for L framework. +Catalyst::Authentication::Credential::OpenID - OpenID credential for Catalyst::Plugin::Authentication framework. =head1 VERSION -0.04 +0.05 =head1 SYNOPSIS -In MyApp.pm. +In MyApp.pm- use Catalyst qw/ Authentication @@ -143,7 +141,7 @@ In MyApp.pm. Session::State::Cookie /; -Somewhere in myapp.conf. +Somewhere in myapp.conf- default_realm openid @@ -157,7 +155,7 @@ Somewhere in myapp.conf. -Or in your myapp.yml if you're using L instead. +Or in your myapp.yml if you're using L instead- Plugin::Authentication: default_realm: openid @@ -167,7 +165,7 @@ Or in your myapp.yml if you're using L instead. class: OpenID ua_class: LWPx::ParanoidAgent -In a controller, perhaps C. +In a controller, perhaps C- sub openid : Local { my($self, $c) = @_; @@ -183,7 +181,7 @@ In a controller, perhaps C. } } -And a L