<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-10-22 0:49 GMT-05:00 Andrew Beverley <span dir="ltr"><<a href="mailto:andy@andybev.com" target="_blank">andy@andybev.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 2015-10-21 at 19:04 -0500, Richard Reina wrote:<br>
> Can I forgoe more formal and extensive authentication in my case?<br>
<br>
</span>Yes, but it would still be easier for you to use a plugin, such as<br>
Dancer2::Plugin::Auth::Extensible or Dancer2::Plugin::Auth::Tiny<br>
<br>
In the case of the former, all you need is as follows. It will even<br>
generate the login and logout routes:<br>
<br>
<br>
use Dancer2::Plugin::Auth::Extensible;<br>
<br>
get '/restricted' => require_login sub {<br>
...<br>
}<br>
<br>
plugins:<br>
Auth::Extensible:<br>
realms:<br>
config:<br>
provider: Config<br>
users:<br>
- user: andy<br>
pass: secret # or encrypted<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</div></div></blockquote></div><br></div><div class="gmail_extra">Thanks Andy. I intend on adopting D2 Auth:Extensible in the future especially, when I begin to have the need for roles. Appreciate the advice.<br></div></div>