Epic cleanup and code shuffle in tests to avoid warnings
[catagits/Catalyst-Plugin-Authentication.git] / t / lib / RemoteTestApp2.pm
CommitLineData
b94c4996 1package RemoteTestApp2;
d055ce0c 2use strict;
3use warnings;
b94c4996 4
5use Catalyst qw/
6 Authentication
7/;
8
9use 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',
7289cea0 22 username_field => 'my_user_name',
b94c4996 23 },
24 store => {
25 class => 'Null',
26 },
27 },
28 },
29 },
30);
31
b94c4996 32__PACKAGE__->setup;
33
d055ce0c 341;
35