| 1 | package Catalyst::Plugin::Authentication::Store::HTTP::Backend; | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 0 | ▶ | use Catalyst::Plugin::Authentication::Store::HTTP::User; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Catalyst::Plugin::Authentication::Store::HTTP::Backend - HTTP authentication storage backend | ||
| 10 | |||
| 11 | =head1 SYNOPSIS | ||
| 12 | |||
| 13 | See L<Catalyst::Plugin::Authentication::Store::HTTP>. | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | HTTP authentication storage backend | ||
| 18 | |||
| 19 | =head1 METHODS | ||
| 20 | |||
| 21 | =head2 new | ||
| 22 | |||
| 23 | =cut | ||
| 24 | |||
| 25 | sub new { | ||
| 26 | my ($class, $config) = @_; | ||
| 27 | |||
| 28 | bless {%$config}, $class; | ||
| 29 | } | ||
| 30 | |||
| 31 | =head2 get_user | ||
| 32 | |||
| 33 | =cut | ||
| 34 | |||
| 35 | sub get_user { | ||
| 36 | my ($self, $id) = @_; | ||
| 37 | |||
| 38 | my $user = { | ||
| 39 | id => $id, | ||
| 40 | auth_url => $self->{auth_url}, | ||
| 41 | domain => $self->{domain}, | ||
| 42 | keep_alive => $self->{keep_alive} || 0, | ||
| 43 | ntlm => $self->{ntlm} || 0, | ||
| 44 | }; | ||
| 45 | |||
| 46 | return bless $user, 'Catalyst::Plugin::Authentication::Store::HTTP::User'; | ||
| 47 | } | ||
| 48 | |||
| 49 | =head1 AUTHOR | ||
| 50 | |||
| 51 | Daisuke Murase <typester@cpan.org> | ||
| 52 | |||
| 53 | =head1 COPYRIGHT | ||
| 54 | |||
| 55 | This program is free software; you can redistribute | ||
| 56 | it and/or modify it under the same terms as Perl itself. | ||
| 57 | |||
| 58 | The full text of the license can be found in the | ||
| 59 | LICENSE file included with this module. | ||
| 60 | |||
| 61 | =cut | ||
| 62 | |||
| 63 | 1; | ||
| 64 | |||