Commit | Line | Data |
b94c4996 |
1 | package RemoteTestApp2; |
d055ce0c |
2 | use strict; |
3 | use warnings; |
b94c4996 |
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', |
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 |
34 | 1; |
35 | |