[Catalyst] OpenID and SREG

Edmund von der Burg edmund.vonderburg at gmail.com
Sat Jan 9 01:15:04 GMT 2010


2009/7/6 Trevor Phillips <trevor.phillips at gmail.com>:
> Doing a bit more reading, it looks like Google won't support SREG, but
> are supporting AX, which seems to be the way places are going. Does
> the current Catalyst OpenID Auth support AX?
>
> Fudging the format for the SREG query, I tried:
>
>               extensions => {
>                  'http://openid.net/srv/ax/1.0' => 1
>               },
>               extension_args => [
>                      'http://openid.net/srv/ax/1.0',
>                      {
>                       required => 'email',
>                       'type.email' => 'http://schema.openid.net/contact/email'
>                      }
>                  ]
>
> ...but got nothing back from the providers I tried.

Indeed - Google are super picky :)

You'll need the 'mode' parameter too:

'http://openid.net/srv/ax/1.0' => {
  required => 'email',
  mode     => 'fetch_request',
  'type.email' => 'http://schema.openid.net/contact/email',
},

Cheers,
  Edmund.



More information about the Catalyst mailing list