Move actions out of test app
[catagits/Catalyst-Authentication-Credential-HTTP.git] / t / lib / AuthDigestTestApp.pm
CommitLineData
861c2f44 1package AuthDigestTestApp;
d9412896 2use Catalyst qw/
3 Authentication
4 Cache
5/;
6
7our %users;
8my $digest_pass = Digest::MD5->new;
9$digest_pass->add('Mufasa2:testrealm@host.com:Circle Of Life');
10%users = (
11 Mufasa => { pass => "Circle Of Life", },
861c2f44 12 Mufasa2 => { pass => $digest_pass->hexdigest, },
d9412896 13);
14__PACKAGE__->config(
15 cache => {
16 backend => {
17 class => 'Cache::FileCache',
18 },
19 },
20 authentication => {
861c2f44 21 default_realm => 'testrealm@host.com',
22 realms => {
23 'testrealm@host.com' => {
24 store => {
25 class => 'Minimal',
26 users => \%users,
27 },
28 credential => {
29 class => 'HTTP',
30 type => 'digest',
d9412896 31 password_type => 'clear',
861c2f44 32 password_field => 'pass'
33 },
34 },
35 },
d9412896 36 },
37);
38__PACKAGE__->setup;
39
401;
41