1Catalyst::AuthenticatioUns:e:rCrCCeoadntetanrltiyibsautlt::e::dANuoPtPehareslnstwDioocrcadut(mi3eo)nnt:a:tCiroendential::NoPassword(3)
2
3
4
6 Catalyst::Authentication::Credential::NoPassword - Authenticate a user
7 without a password.
8
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
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
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
48 authenticate ( $c, $realm, $authinfo )
49 Try to log a user in.
50
51
52
53perl v5.28.0 Catalys2t0:1:3A-u0t1h-e0n8tication::Credential::NoPassword(3)