Dancer2-Plugin-Auth-YARBAC
view release on metacpan or search on metacpan
lib/Dancer2/Plugin/Auth/YARBAC.pm view on Meta::CPAN
Want to create your own provider backend? No problem,
just write a Moo based module (or similar oo) and use it to extend
L<Dancer2::Plugin::Auth::YARBAC::Provider::Base>
then implement the required methods and you're done.
=head1 CONTROLLING AUTHENTICATION ACCESS
There are three ways you can control authentication access to your app.
One is using the keyword 'hook_before_require_login' which is a global
check for all routes.
This is handy if your app is mostly locked down with only a few exceptions.
The exceptions can be specified in your apps config using the option
'no_login_required' and putting in exempt routes here as a regex.
The second option is to use the keyword 'require_login' which must be
set on each route you wish authentication to be a requirement.
This is handy when most of your app is open to the big wide
world but you've got a few routes that need protecting.
The third option is the keyword 'logged_in_user' which is
more manual but handy if the default behavour of URL
redirecting is getting in your way.
( run in 0.523 second using v1.01-cache-2.11-cpan-49f99fa48dc )