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