[Catalyst] Catalyst::Authentication::Credentials::OpenID,
extensions and Config::General
Adam Sjøgren
asjo at koldfront.dk
Thu Jul 8 21:22:54 GMT 2010
The example given in Config::General format in the CONFIGURATION section
of the Catalyst::Authentication::Credentials::OpenID doesn't seem to
yield the structure that is expected by the module.
The Perl-example looks like this:
extensions => [
'http://openid.net/extensions/sreg/1.1',
{
required => 'email',
optional => 'fullname,nickname,timezone',
},
],
And the corresponding Config::General snippet looks like this:
<extensions>
http://openid.net/extensions/sreg/1.1
required email
optional fullname,nickname,timezone
</extensions>
Which is parsed into a hash-ref, not an array-ref with a scalar and a
hash-ref - so it doesn't work; I get this error:
Not an ARRAY reference at /usr/share/perl5/Catalyst/Authentication/Credential/OpenID.pm line 77.
I tried various variations to coax Config::General into generating the
structure expected by the module, but failed - and resorted to using a
YAML configuration file.
I am wondering how to express the structure in Config::General syntax?
(This is using Catalyst::Authentication::Credentials::OpenID 0.16 and
Config::General 2.40).
Best regards,
Adam
--
"My internal clock is on Tokyo time." Adam Sjøgren
asjo at koldfront.dk
More information about the Catalyst
mailing list