If you want to grab other user data then you have to use an extension
openid => { credential => {
class => "OpenID", store => {
class => "OpenID", }, 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/srv/ax/1.0' => { mode =>
'fetch_request', 'type.nickname' =>
'http://axschema.org/namePerson/friendly', 'type.email' =>
'http://axschema.org/contact/email', 'type.fullname' =>
'http://axschema.org/namePerson', 'type.firstname' =>
'http://axschema.org/namePerson/first', 'type.lastname' =>
'http://axschema.org/namePerson/last', 'type.dob' =>
'http://axschema.org/birthDate', 'type.gender' =>
'http://axschema.org/person/gender', 'type.country' =>
'http://axschema.org/contact/country/home', 'type.language'
=> 'http://axschema.org/pref/language', 'type.timezone' =>
'http://axschema.org/pref/timezone', required =>
'nickname,fullname,email,firstname,lastname', if_available
=> 'dob,gender,country,language,timezone', }
], },
To: [email protected]
Subject: RE: [Catalyst] Authentication using OpenID
Date: Fri, 10 Dec 2010 20:01:20 +0530
From: [email protected]
OK.
I am able to use "Catalyst::Authentication::Credential::OpenID", and after
authenticating with google, I get
Catalyst::Plugin::Authentication::User::Hash object, but when i try to get the
user details,
$c->user->url
$c->user->display
I am getting exceptions related to method not found.
Can we access used details say Name , Email etc using
"Catalyst::Authentication::Credential::OpenID" or
we have to use something else say oAuth to get details.
Basically, I want to simplify the user registration to my app when somebody
logs in for the first time.
Vivek
On Fri, 10 Dec 2010 14:14:38 +0000, Blaine Everingham
<[email protected]> wrote:
Currently Facebook is not part of OpenID. Therefore you would need to have two
different authentication credential modules.
OpenID
Catalyst::Authentication::Credential::OpenID
Facebook
Catalyst::Authentication::Credential::FBConnect
Date: Fri, 10 Dec 2010 00:11:46 +0530
From: [email protected]
To: [email protected]
Subject: [Catalyst] Authentication using OpenID
Hi,
I want to have my users authenticated using openid. If users are logging in for
the first time, I want to get the details, provided by say facebook, to be
saved in my DB.
Which Catalyst authentication Plug-in should be used in order to achieve this
goal.
Vivek
_______________________________________________ List:
[email protected] Listinfo:
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive:
http://www.mail-archive.com/[email protected]/ Dev site:
http://dev.catalyst.perl.org/
--
Vivek Chhikara
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/