Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>After reading the Catalyst manual a number of times and getting some clue from Catalyst mailing lists, I came to know that we have to use extensions.</p> <p>Because we will be using a number of different realms, I used progressive class.</p> <p>Here is sample configuration used in my app, currently supporting only openID.</p> <p>This uses Simple Registration Schema for OpenID Attribute Exchange defined at <a href="http://www.axschema.org/types/" rel="nofollow">http://www.axschema.org/types/</a></p> <pre><code>'Plugin::Authentication' =&gt; { default_realm =&gt; 'progressive', realms =&gt; { progressive =&gt; { class =&gt; 'Progressive', realms =&gt; [ 'openid' ], }, openid =&gt; { credential =&gt; { class =&gt; "OpenID", store =&gt; { class =&gt; "OpenID", }, consumer_secret =&gt; "Don't bother setting", ua_class =&gt; "LWP::UserAgent", # whitelist is only relevant for LWPx::ParanoidAgent ua_args =&gt; { whitelisted_hosts =&gt; [qw/ 127.0.0.1 localhost /], }, extensions =&gt; [ 'http://openid.net/srv/ax/1.0' =&gt; { mode =&gt; 'fetch_request', 'type.nickname' =&gt; 'http://axschema.org/namePerson/friendly', 'type.email' =&gt; 'http://axschema.org/contact/email', 'type.fullname' =&gt; 'http://axschema.org/namePerson', 'type.firstname' =&gt; 'http://axschema.org/namePerson/first', 'type.lastname' =&gt; 'http://axschema.org/namePerson/last', 'type.dob' =&gt; 'http://axschema.org/birthDate', 'type.gender' =&gt; 'http://axschema.org/person/gender', 'type.country' =&gt; 'http://axschema.org/contact/country/home', 'type.language' =&gt; 'http://axschema.org/pref/language', 'type.timezone' =&gt; 'http://axschema.org/pref/timezone', required =&gt; 'nickname,fullname,email,firstname,lastname,dob,gender,country', if_available =&gt; 'dob,gender,language,timezone', } ], }, } } }, </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload