
trevor.phillips at gmail
Jul 3, 2009, 9:13 PM
Views: 492
Permalink
|
I've only just started looking at OpenID, and would love to integrate it with Catalyst apps. Using Catalyst::Authentication::Credential::OpenID I've got the basics of Authentication working, but I'm having problems with SREG. The first problem is when using a .conf config, the docs say you can use: <extension_args> http://openid.net/extensions/sreg/1.1 required email optional fullname,nickname,timezone </extension_args> However, this fails, since this doesn't resolve into an Array, which is what Net::OpenID::Consumer expects when Catalyst::Authentication::Credential::OpenID calls set_extension_args. Ok, so I can get around that by defining my Auth in my Perl module instead... The next problem is I can't seem to get at the SREG hash. I'm trying to get the hash using: $sreg = $c->user->signed_extension_fields( 'http://openid.net/extensions/sreg/1.1' ); ...but this just assigns $sreg the string 'http://openid.net/extensions/sreg/1.1'. Dumps of $c->user don't show anything useful either. Am I missing something, or is OpenID Extensions for Catalyst currently broken? -- Trevor Phillips - http://dortamur.livejournal.com/ "On nights such as this, evil deeds are done. And good deeds, of course. But mostly evil, on the whole." -- (Terry Pratchett, Wyrd Sisters) _______________________________________________ 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[at]lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
|