1 package Catalyst::Authentication::Credential::NoPassword;
6 has 'realm' => (is => 'ro', required => 1);
8 around BUILDARGS => sub {
13 my ($config, $app, $realm) = @_;
14 return $class->$orig( realm => $realm );
17 return $class->$orig(@_);
22 my ($self, $c, $realm, $authinfo) = @_;
23 $self->realm->find_user($authinfo, $c);
32 Catalyst::Authentication::Credential::NoPassword - Authenticate a user
41 package MyApp::Controller::Auth;
43 sub login_as_another_user : Local {
46 if ($c->user_exists() and $c->user->username() eq 'root') {
47 $c->authenticate( {id => c->req->params->{user_id}}, 'nopassword' );
53 This authentication credential checker takes authentication information
54 (most often a username) and retrieves the user from the store. No validation
55 of any credentials is done. This is intended for administrative backdoors,
56 SAML logins and so on when you have identified the new user by other means.
61 <Plugin::Authentication>
73 </Plugin::Authentication>
77 =head2 authenticate ( $c, $realm, $authinfo )