Dancer2-Plugin-Auth-Extensible
view release on metacpan or search on metacpan
[ENHANCEMENTS]
* Call Dancer2's change_session_id on successful login. This method has
not yet been merged into Dancer2 core but we want to be ready for it
(Peter Mottram).
[BUG FIXES]
* Incorrect call to user_password from app not plugin
(Andrew Beverly, GH #53).
* Avoid memory leaks in BUILD by passing weakened ref to plugin into
add_route callbacks (Peter Mottram).
* Call $app->session instead of $app->app->session in _post_login_route
(Peter Mottram).
[MISC]
* Creation of temp lexical vars adds overhead so remove some where not
needed (Peter Mottram).
0.601 Tue Jul 12 16:23:22 2016 CEST
lib/Dancer2/Plugin/Auth/Extensible.pm view on Meta::CPAN
'user_roles';
#
# public methods
#
sub BUILD {
my $plugin = shift;
my $app = $plugin->app;
Scalar::Util::weaken( my $weak_plugin = $plugin );
warn "No Auth::Extensible realms configured with which to authenticate user"
unless $plugin->realm_count;
# Force all providers to load whilst we have access to the full dsl.
# If we try and load later, then if the provider is using other
# keywords (such as schema) they will not be available from the dsl.
for my $realm ( @{ $plugin->realm_names } ) {
$plugin->auth_provider( $realm );
}
( run in 0.683 second using v1.01-cache-2.11-cpan-65fba6d93b7 )