File: AuthTestApp.pm

package info (click to toggle)
libcatalyst-authentication-credential-http-perl 1.018-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 404 kB
  • sloc: perl: 656; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package AuthTestApp;
use Catalyst qw/
    Authentication
/;
our %users;
__PACKAGE__->config(
    'Plugin::Authentication' => {
        default_realm => 'test',
        test => {
            store => {
                class => 'Minimal',
                users => \%users,
            },
            credential => {
                class => 'HTTP',
                type  => 'basic',
                password_type => 'clear',
                password_field => 'password'
            },
        },
    },
);
%users = (
    foo => { password         => "s3cr3t", },
);
__PACKAGE__->setup;

1;