-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add config for identity_providers in local_info.xml #524
base: dev
Are you sure you want to change the base?
Add config for identity_providers in local_info.xml #524
Conversation
694c0b2
to
7e7396c
Compare
7e7396c
to
11b2a67
Compare
lib/Gocdb_Services/Config.php
Outdated
$localInfo = $this->GetLocalInfoXML(); | ||
$identityProviders = []; | ||
|
||
if (!empty($localInfo->identity_providers->provider)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens here if identity_providers
is omitted in it's entirety from the local_config.xml
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
identity_providers -> this is anyway optional. But if passed thru xml then it MUST have provider(This being idp, name, and other attributes) info.
This is just a safe check. Just in case if Null case is referring to any method(s) due to which it may cause errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor changes are needed.
rebasing for temporary testing in pre-production |
eb5ddab
to
277ad7e
Compare
- array_intersection was no longer suitable, as we want to extend the check to N required groups. - array_intersection would return a populated array even if only one required group was provided in entitlements, because that one group would be the interesection.
fbd2e29
to
637dcd8
Compare
Resolves GT-472 and GT-471