X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FRemoteTestApp2.pm;h=5d4c697f6ea784229c9a701ab0cb78dfd70f5be2;hb=7289cea01f93cd01e7dd4fa6b2d281fab878d98a;hp=87bb8fbbd99cc2af0529265ab63bb41549cbe615;hpb=9172af6de8c74c0e87583d0f217e07358e4f38c9;p=catagits%2FCatalyst-Plugin-Authentication.git diff --git a/t/lib/RemoteTestApp2.pm b/t/lib/RemoteTestApp2.pm index 87bb8fb..5d4c697 100644 --- a/t/lib/RemoteTestApp2.pm +++ b/t/lib/RemoteTestApp2.pm @@ -17,6 +17,7 @@ __PACKAGE__->config( deny_regexp=> 'denied', cutname_regexp=> 'CN=(.*)/OU=Test', source => 'SSL_CLIENT_S_DN', + username_field => 'my_user_name', }, store => { class => 'Null', @@ -29,7 +30,10 @@ __PACKAGE__->config( sub default : Local { my ( $self, $c ) = @_; if ($c->authenticate()) { - $c->res->body('User:' . $c->user->{id}); + $c->res->body( 'User:' + . $c->user->{id} . "\n" + . 'my_user_name:' + . $c->user->{my_user_name} ); } else { $c->res->body('FAIL');