Epic cleanup and code shuffle in tests to avoid warnings
[catagits/Catalyst-Plugin-Authentication.git] / t / lib / RemoteTestApp1.pm
1 package RemoteTestApp1;
2 use strict;
3 use warnings;
4 use Catalyst qw/
5    Authentication
6 /;
7
8 use base qw/Catalyst/;
9 __PACKAGE__->engine_class('RemoteTestEngine');
10 __PACKAGE__->config(
11     'Plugin::Authentication' => {
12         default_realm => 'remote',
13         realms => {
14             remote => {
15                 credential => {
16                     class => 'Remote',
17                     allow_regexp => '^(bob|john|CN=.*)$',
18                     deny_regexp=> 'denied',
19                     cutname_regexp=> 'CN=(.*)/OU=Test',
20                 },
21                 store => {
22                     class => 'Null',
23                 },
24             },
25         },
26     },
27 );
28
29 __PACKAGE__->setup;
30
31 1;
32