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__-&gt;config-&gt;{authentication} parameters as some places in the documentation seem to require a structure like<br>&nbsp; <span style="font-family: courier new,monospace;">
default_realm =&gt; &#39;users&#39;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;realms =&gt; {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; users =&gt; {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; credential =&gt; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class =&gt; &#39;Password&#39;,... },
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; store =&gt; { class =&gt; &#39;DBIx::Class&#39;,....}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;}</span><br>while other parts of the documentation seem to want everything under 
<span style="font-family: courier new,monospace;">dbic</span>..... &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <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>