Commit | Line | Data |
b94c4996 |
1 | package RemoteTestApp1; |
d055ce0c |
2 | use strict; |
3 | use warnings; |
b94c4996 |
4 | use Catalyst qw/ |
5 | Authentication |
6 | /; |
7 | |
8 | use base qw/Catalyst/; |
afa31b01 |
9 | unless ($Catalyst::VERSION >= 5.89000) { |
10 | __PACKAGE__->engine_class('RemoteTestEngine'); |
11 | } |
b94c4996 |
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 | ); |
b94c4996 |
30 | __PACKAGE__->setup; |
afa31b01 |
31 | if ($Catalyst::VERSION >= 5.89000) { |
32 | require RemoteTestEngineRole; |
33 | RemoteTestEngineRole->meta->apply(__PACKAGE__->engine); |
34 | } |
b94c4996 |
35 | |
d055ce0c |
36 | 1; |
37 | |