when calling $c->authenticate. Docs and tests for this.
- Clean up documentation of options inherited from
Catalyst::Authentication::Credential::Password
+ - Added an example of calling methods in the credential module from a
+ controller to the POD.
1.002 2008-09-03
- Fix the assumptions that the password field is named password when doing
. Document md5'd passwords for digest stuff
-. Port work's apps.
-. Document how to find the credential module, so that you can call authorization_required_response if you want to.
. Add deprecation notice to old module.
. document & test authorization_required_message
. Test $self->_config->{authorization_required_message} + authorization_required_message = undef does not stamp on body.
do_stuff();
}
+
+ sub always_auth : Local {
+ my ( $self, $c ) = @_;
+
+ # Force authorization headers onto the response so that the user
+ # is asked again for authentication, even if they successfully
+ # authenticated.
+ my $realm = $c->get_auth_realm('example');
+ $realm->credential->authorization_required_response($c, $realm);
+ }
# with ACL plugin
__PACKAGE__->deny_access_unless("/path", sub { $_[0]->authenticate });