1Catalyst::AuthenticatioUns:e:rCrCCeoadntetanrltiyibsautlt::e::dANuoPtPehareslnstwDioocrcadut(mi3eo)nnt:a:tCiroendential::NoPassword(3)
2
3
4

NAME

6       Catalyst::Authentication::Credential::NoPassword - Authenticate a user
7       without a password.
8

SYNOPSIS

10           use Catalyst qw/
11             Authentication
12             /;
13
14           package MyApp::Controller::Auth;
15
16           sub login_as_another_user : Local {
17               my ($self, $c) = @_;
18
19               if ($c->user_exists() and $c->user->username() eq 'root') {
20                   $c->authenticate( {id => c->req->params->{user_id}}, 'nopassword' );
21               }
22           }
23

DESCRIPTION

25       This authentication credential checker takes authentication information
26       (most often a username) and retrieves the user from the store. No
27       validation of any credentials is done. This is intended for
28       administrative backdoors, SAML logins and so on when you have
29       identified the new user by other means.
30

CONFIGURATION

32           # example
33           <Plugin::Authentication>
34               <nopassword>
35                   <credential>
36                       class = NoPassword
37                   </credential>
38                   <store>
39                       class = DBIx::Class
40                       user_model = DB::User
41                       role_relation = roles
42                       role_field = name
43                   </store>
44               </nopassword>
45           </Plugin::Authentication>
46

METHODS

48   authenticate ( $c, $realm, $authinfo )
49       Try to log a user in.
50
51
52
53perl v5.32.1               Catalys2t0:2:1A-u0t1h-e2n6tication::Credential::NoPassword(3)
Impressum