Skip to content

Commit e32183c

Browse files
Merge pull request #2089 from yakatz/feature/vhost_cas_cookie_path
Add cas_cookie_path in vhosts
2 parents 0e67921 + 6af65e6 commit e32183c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

manifests/vhost.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@
150150
# @param cas_validate_url
151151
# Sets the URL to use when validating a client-presented ticket in an HTTP query string.
152152
#
153+
# @param cas_cookie_path
154+
# Sets the location where information on the current session should be stored. This should
155+
# be writable by the web server only.
156+
#
153157
# @param comment
154158
# Adds comments to the header of the configuration file. Pass as string or an array of strings.
155159
# For example:
@@ -1964,6 +1968,7 @@
19641968
$cas_login_url = undef,
19651969
$cas_validate_url = undef,
19661970
$cas_validate_saml = undef,
1971+
$cas_cookie_path = undef,
19671972
Optional[String] $shib_compat_valid_user = undef,
19681973
Optional[Enum['On', 'on', 'Off', 'off', 'DNS', 'dns']] $use_canonical_name = undef,
19691974
Optional[Variant[String,Array[String]]] $comment = undef,

spec/classes/mod/auth_cas_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
context 'vhost setup', :compile do
6565
let :pre_condition do
66-
"class { 'apache': } apache::vhost { 'test.server': docroot => '/var/www/html', cas_root_proxied_as => 'http://test.server'} "
66+
"class { 'apache': } apache::vhost { 'test.server': docroot => '/var/www/html', cas_root_proxied_as => 'http://test.server', cas_cookie_path => '/my/cas/path'} "
6767
end
6868

6969
let :facts do
@@ -85,6 +85,7 @@
8585
it { is_expected.to contain_file('/var/cache/mod_auth_cas/').with_owner('apache') }
8686
it {
8787
is_expected.to contain_concat__fragment('test.server-auth_cas').with(content: %r{^\s+CASRootProxiedAs http://test.server$})
88+
is_expected.to contain_concat__fragment('test.server-auth_cas').with(content: %r{^\s+CASCookiePath /my/cas/path$})
8889
}
8990
end
9091
end

0 commit comments

Comments
 (0)