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/; |
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 | |
b94c4996 |
29 | __PACKAGE__->setup; |
30 | |
d055ce0c |
31 | 1; |
32 | |