Checking in changes prior to tagging of version 0.10018.
[catagits/Catalyst-Plugin-Authentication.git] / t / lib / RemoteTestApp1.pm
CommitLineData
b94c4996 1package RemoteTestApp1;
d055ce0c 2use strict;
3use warnings;
b94c4996 4use Catalyst qw/
5 Authentication
6/;
7
8use base qw/Catalyst/;
afa31b01 9unless ($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 31if ($Catalyst::VERSION >= 5.89000) {
32 require RemoteTestEngineRole;
33 RemoteTestEngineRole->meta->apply(__PACKAGE__->engine);
34}
b94c4996 35
d055ce0c 361;
37