[Catalyst] Authentication using OpenID
Blaine Everingham
grandmasterblaine at hotmail.com
Fri Dec 10 15:49:05 GMT 2010
If you want to grab other user data then you have to use an extension
openid =3D> { credential =3D> { =
class =3D> "OpenID", store =3D> { =
class =3D> "OpenID", }, =
consumer_secret =3D> "Don't bother setting", ua_cl=
ass =3D> "LWP::UserAgent", # whitelist is only relevan=
t for LWPx::ParanoidAgent ua_args =3D> { =
whitelisted_hosts =3D> [qw/ 127.0.0.1 localhost /], =
}, extensions =3D> [ =
'http://openid.net/srv/ax/1.0' =3D> { mo=
de =3D> 'fetch_request', 'type.nickname' =3D> 'http://ax=
schema.org/namePerson/friendly', 'type.email' =3D> 'http=
://axschema.org/contact/email', 'type.fullname' =3D> 'ht=
tp://axschema.org/namePerson', 'type.firstname' =3D> 'ht=
tp://axschema.org/namePerson/first', 'type.lastname' =3D=
> 'http://axschema.org/namePerson/last', 'type.dob' =3D>=
'http://axschema.org/birthDate', 'type.gender' =3D> 'ht=
tp://axschema.org/person/gender', 'type.country' =3D> 'h=
ttp://axschema.org/contact/country/home', 'type.language=
' =3D> 'http://axschema.org/pref/language', 'type.timezo=
ne' =3D> 'http://axschema.org/pref/timezone', required =
=3D> 'nickname,fullname,email,firstname,lastname', if_av=
ailable =3D> 'dob,gender,country,language,timezone', }
], },
To: catalyst at lists.scsys.co.uk
Subject: RE: [Catalyst] Authentication using OpenID
Date: Fri, 10 Dec 2010 20:01:20 +0530
From: vivek at chhikara.org
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::Authentica=
tion::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 somebod=
y logs in for the first time.
=
Vivek
=
On Fri, 10 Dec 2010 14:14:38 +0000, Blaine Everingham <grandmasterblaine at ho=
tmail.com> 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: vivek at chhikara.org
To: catalyst at lists.scsys.co.uk
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, t=
o be saved in my DB.
Which Catalyst authentication Plug-in should be used in order to achieve th=
is goal.
Vivek
=
=
=
=
=
=
=
=
=
=
_______________________________________________ List: Catalyst at lists.scsys.=
co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst =
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/=
Dev site: http://dev.catalyst.perl.org/
=
-- =
Vivek Chhikara
_______________________________________________
List: Catalyst at lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/ =
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20101210/e7ed8=
9c6/attachment.htm
More information about the Catalyst
mailing list