Stop forcing $authinfo->{id} to be passed down to the store, instead using just confi...
[catagits/Catalyst-Plugin-Authentication.git] / t / live_app_remote2.t
CommitLineData
b94c4996 1use strict;
2use warnings;
3use Test::More tests => 3;
4
5use lib 't/lib';
6use Catalyst::Test qw/RemoteTestApp2/;
7
8$RemoteTestEngine::REMOTE_USER = undef;
9
10# WARNING: this requires $c->engine->env to work properly
11# $c->engine->env was slightly broken in 5.8004 but this test should pass
12# as it uses Engine::CGI that works fine even in 5.80004
13
14$RemoteTestEngine::SSL_CLIENT_S_DN = 'CN=anyuser/OU=Test/C=Company';
15ok( request('/')->is_success, 'testing "source" option' );
16
17$RemoteTestEngine::SSL_CLIENT_S_DN = 'CN=namexyz/OU=Test/C=Company';
18ok( request('/')->is_success, 'testing "source" + "cutname" 1' );
69be7d10 19is( request('/')->content, "my_user_name:namexyz",
7289cea0 20 'testing "source" + "cutname" 2' );