Checking in changes prior to tagging of version 0.10018.
[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 unless ($Catalyst::VERSION >= 5.89000) {
10     __PACKAGE__->engine_class('RemoteTestEngine');
11 }
12 __PACKAGE__->config(
13     'Plugin::Authentication' => {
14         default_realm => 'remote',
15         realms => {
16             remote => {
17                 credential => {
18                     class => 'Remote',
19                     allow_regexp => '^(bob|john|CN=.*)$',
20                     deny_regexp=> 'denied',
21                     cutname_regexp=> 'CN=(.*)/OU=Test',
22                 },
23                 store => {
24                     class => 'Null',
25                 },
26             },
27         },
28     },
29 );
30 __PACKAGE__->setup;
31 if ($Catalyst::VERSION >= 5.89000) {
32     require RemoteTestEngineRole;
33     RemoteTestEngineRole->meta->apply(__PACKAGE__->engine);
34 }
35
36 1;
37