Could someone please post a working example of password authentication using the currently-recommended techniques? I cannot get it to work.<br><br>There is an example in Catalyst::Manual::Cookbook and in Catalyst::Manual::Tutorial::Authentication but these use the login method which appears to be obsolete and deprecated. Instead we are supposed to use authenticate.
<br><br>Also I am confused as to the correct __PACKAGE__->config->{authentication} parameters as some places in the documentation seem to require a structure like<br> <span style="font-family: courier new,monospace;">
default_realm => 'users',</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> realms => {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
users => {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> credential => { class => 'Password',... },
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> store => { class => 'DBIx::Class',....}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> }</span><br>while other parts of the documentation seem to want everything under
<span style="font-family: courier new,monospace;">dbic</span>..... <br><br>Please advise, I am very confused and my code is not working at all.<br>-- <br>Regards,<br>Martin<br>(<a href="mailto:m.e@acm.org">m.e@acm.org
</a>)<br>IT: <a href="http://methodsupport.com">http://methodsupport.com</a> Personal: <a href="http://thereisnoend.org">http://thereisnoend.org</a>