1 package RemoteTestApp2;
8 __PACKAGE__->engine_class('RemoteTestEngine');
10 'Plugin::Authentication' => {
11 default_realm => 'remote',
16 allow_regexp => '^(bob|john|CN=.*)$',
17 deny_regexp=> 'denied',
18 cutname_regexp=> 'CN=(.*)/OU=Test',
19 source => 'SSL_CLIENT_S_DN',
20 username_field => 'my_user_name',
31 my ( $self, $c ) = @_;
32 if ($c->authenticate()) {
35 . $c->user->{my_user_name}
39 $c->res->body('FAIL');
45 my ( $self, $c ) = @_;