X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAuthentication%2FCredential%2FOpenID.pm;fp=lib%2FCatalyst%2FAuthentication%2FCredential%2FOpenID.pm;h=61d061704b030998d065546e22eef3270dbad215;hb=29b37787ec5f5ed50374223e0a56fed9fd6e37a0;hp=a23947fe2912d397238d011c8be76f1f389f918b;hpb=4f4cf0f92aeb6acc5664cdcdee4a0d7a37348b39;p=catagits%2FCatalyst-Authentication-Credential-OpenID.git diff --git a/lib/Catalyst/Authentication/Credential/OpenID.pm b/lib/Catalyst/Authentication/Credential/OpenID.pm index a23947f..61d0617 100644 --- a/lib/Catalyst/Authentication/Credential/OpenID.pm +++ b/lib/Catalyst/Authentication/Credential/OpenID.pm @@ -7,7 +7,7 @@ BEGIN { __PACKAGE__->mk_accessors(qw/ _config realm debug secret /); } -our $VERSION = "0.14_05"; +our $VERSION = "0.15"; use Net::OpenID::Consumer; use Catalyst::Exception (); @@ -161,13 +161,13 @@ Catalyst::Authentication::Credential::OpenID - OpenID credential for Catalyst::P =head1 VERSION -0.14_05 +0.15 =head1 BACKWARDS COMPATIBILITY CHANGES -=head2 EXTENTION_ARGS v EXTENSIONS +=head2 EXTENSION_ARGS v EXTENSIONS -B: The extenstions were previously configured under the key C. They are now configured under C. This prevents the need for double configuration but it breaks extensions in your application if you do not change the name. The old version is supported for now but may be phased out at any time. +B: The extensions were previously configured under the key C. They are now configured under C. This prevents the need for double configuration but it breaks extensions in your application if you do not change the name. The old version is supported for now but may be phased out at any time. As previously noted, L, I have not tested the extensions. I would be grateful for any feedback or, better, tests. @@ -194,8 +194,8 @@ Somewhere in myapp.conf- class OpenID + ua_class LWP::UserAgent - ua_class LWP::UserAgent @@ -208,7 +208,7 @@ Or in your myapp.yml if you're using L instead- openid: credential: class: OpenID - ua_class: LWP::UserAgent + ua_class: LWP::UserAgent In a controller, perhaps C- @@ -353,24 +353,25 @@ clear text passwords and one called "openid" which uses... uh, OpenID. } }, openid => { - consumer_secret => "Don't bother setting", - ua_class => "LWP::UserAgent", - ua_args => { - whitelisted_hosts => [qw/ 127.0.0.1 localhost /], - }, credential => { class => "OpenID", store => { class => "OpenID", }, - }, - extensions => [ - 'http://openid.net/extensions/sreg/1.1', - { - required => 'email', - optional => 'fullname,nickname,timezone', + consumer_secret => "Don't bother setting", + ua_class => "LWP::UserAgent", + # whitelist is only relevant for LWPx::ParanoidAgent + ua_args => { + whitelisted_hosts => [qw/ 127.0.0.1 localhost /], }, - ], + extensions => [ + 'http://openid.net/extensions/sreg/1.1', + { + required => 'email', + optional => 'fullname,nickname,timezone', + }, + ], + }, }, }, } @@ -398,23 +399,23 @@ This is the same configuration in the default L configuration format f - - whitelisted_hosts 127.0.0.1 - whitelisted_hosts localhost - - consumer_secret Don't bother setting - ua_class LWP::UserAgent class OpenID class OpenID + + whitelisted_hosts 127.0.0.1 + whitelisted_hosts localhost + + consumer_secret Don't bother setting + ua_class LWP::UserAgent + + http://openid.net/extensions/sreg/1.1 + required email + optional fullname,nickname,timezone + - - http://openid.net/extensions/sreg/1.1 - required email - optional fullname,nickname,timezone - @@ -440,16 +441,17 @@ And now, the same configuration in L. B: L is whitespace sensiti class: OpenID store: class: OpenID - consumer_secret: Don't bother setting - ua_class: LWP::UserAgent - ua_args: - whitelisted_hosts: - - 127.0.0.1 - - localhost - extensions: - - http://openid.net/extensions/sreg/1.1 - - required: email - optional: fullname,nickname,timezone + consumer_secret: Don't bother setting + ua_class: LWP::UserAgent + ua_args: + # whitelist is only relevant for LWPx::ParanoidAgent + whitelisted_hosts: + - 127.0.0.1 + - localhost + extensions: + - http://openid.net/extensions/sreg/1.1 + - required: email + optional: fullname,nickname,timezone B: There is no OpenID store yet. @@ -459,10 +461,6 @@ The Simple Registration--L--(SREG) extens =head2 MORE ON CONFIGURATION -These are set in your realm. See above. - -=over 4 - =item ua_args and ua_class L is the default agent E C E if it's available, L if not. You don't have to set