after discussion with ilmari on IRC about which is the better API
instead be performed when bound as the user you authenticated as.
persist_in_session
- Can take one of the following values, defaults to undefined:
+ Can take one of the following values, defaults to *username*:
- undefined
+ username
Only store the username in the session and lookup the user and its roles
on every request. That was how the module worked until version 1.015 and
is also the default for backwards compatibility.
=head2 persist_in_session
-Can take one of the following values, defaults to undefined:
+Can take one of the following values, defaults to I<username>:
-=head3 undefined
+=head3 username
Only store the username in the session and lookup the user and its roles
on every request. That was how the module worked until version 1.015 and is
$config_hash{'user_class'}
||= 'Catalyst::Authentication::Store::LDAP::User';
$config_hash{'role_search_as_user'} ||= 0;
+ $config_hash{'persist_in_session'} ||= 'username';
Catalyst::Utils::ensure_class_loaded( $config_hash{'user_class'} );
my $self = \%config_hash;