-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Shib setting rules. #888
Conversation
ShibRequireSetting is not a real thing. I think it was a mixup between ShibRequireSession and ShibRequestSetting. I've replaced it with separate options for both. The latter is an array as you can set a variety of diffrent settings, while the latter is a simple On or Off value. Each item in the settings array should be the name and value of the setting, e.g. ['requireSession false', 'applicationId myresource']
Have just thought that it would make more sense for the settings to be a hash instead of an array. |
Alright, it now takes a hash. |
@Aethylred ping |
Right. It look like @halfninja is correct. Using While
is replaced with
Given that this module is unlikely to install a version of shibboleth old enough to not support This would have the advantage of helping users who're following old documentation (very common when implementing Shibboleth for the first time) find the declaration they're looking for, yet produce a |
oh, and this would be a lot better if Puppet could validate the content of hashes. hmm, this didn't require the tests to be updated? Ah, I think I've pointed out before that the tests do not confirm if parameters are being correctly inserted into the vhost file. |
@halfninja do you think you could add rspec tests for this also? |
I agree with your thoughts @Aethylred - Regarding validation, I think one could do a certain amount with the help of stdlib functions like Will also have a go at specs when I'm next working on it @igalic. Thanks. |
@igalic I actually lodged a ticket on the lack of spec tests on the vhost file contents. It's an issue across the whole module and a Big Job: https://tickets.puppetlabs.com/browse/MODULES-1381 |
@mhaskel ^ |
I think ShibRequireSetting was a mental mixup between ShibRequireSession
and ShibRequestSetting. I've replaced it with separate options for both. The latter is
an array as you can set multiple different settings, while the former is a simple
On or Off value. Each item in the settings array should be the name and value of the setting,
e.g. ['requireSession false', 'applicationId myresource']