2 Catalyst::Plugin::Authentication::Credential::HTTP::Proxy - HTTP Proxy
3 authentication for Catlayst.
8 Authentication::Store::Moose
9 Authentication::Store::Elk
10 Authentication::Credential::HTTP::Proxy
13 $c->config->{authentication}{http_proxy}= {
14 url =>'http://elkland.no/auth',
15 store => 'Authentication::Store::Moose'
19 my ( $self, $c ) = @_;
21 $c->authorization_required( realm => "foo" ); # named after the status code ;-)
23 # either user gets authenticated or 401 is sent
29 __PACKAGE__->deny_access_unless("/path", sub { $_[0]->authenticate_http });
32 my ( $self, $c ) = @_;
34 $c->authorization_required_response( realm => "foo" );
39 This moduule lets you use HTTP Proxy authentication with
40 Catalyst::Plugin::Authentication.
42 Currently this module only supports the Basic scheme, but upon request
43 Digest will also be added. Patches welcome!
46 This module reads config from $c->config->{authentication}{http_proxy}.
47 The following settings are supported:
49 url Required. A url protected with basic authentication to authenticate
53 To specify what store to use. will use the default store if not set.
56 authorization_required
57 Tries to "authenticate_http_proxy", and if that fails calls
58 "authorization_required_response" and detaches the current action
61 authenticate_http_proxy
62 Looks inside "$c->request->headers" and processes the basic (badly
63 named) authorization header. Then authenticates this against the
66 authorization_required_response
67 Sets "$c->response" to the correct status code, and adds the correct
68 header to demand authentication data from the user agent.
71 Marcus Ramberg <mramberg@cpan.org
74 Copyright (c) 2005 the aforementioned authors. All rights
75 reserved. This program is free software; you can redistribute
76 it and/or modify it under the same terms as Perl itself.