Skip to content
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

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

Sae126V
Copy link
Contributor

@Sae126V Sae126V commented Sep 11, 2024

Resolves GT-472 and GT-471

config/local_info.xsd Outdated Show resolved Hide resolved
@Sae126V Sae126V force-pushed the GT-471-Shib/CheckIn-Token-reads-config-file branch 3 times, most recently from 694c0b2 to 7e7396c Compare September 13, 2024 10:48
@Sae126V Sae126V marked this pull request as ready for review September 13, 2024 10:53
@Sae126V Sae126V requested a review from a team as a code owner September 13, 2024 10:53
@Sae126V Sae126V force-pushed the GT-471-Shib/CheckIn-Token-reads-config-file branch from 7e7396c to 11b2a67 Compare September 16, 2024 08:10
config/local_info.xml Outdated Show resolved Hide resolved
config/local_info.xml Outdated Show resolved Hide resolved
$localInfo = $this->GetLocalInfoXML();
$identityProviders = [];

if (!empty($localInfo->identity_providers->provider)) {
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

@gregcorbett gregcorbett left a 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.

@gregcorbett gregcorbett self-assigned this Nov 14, 2024
@gregcorbett gregcorbett added this to the September 2024 milestone Nov 14, 2024
@gregcorbett
Copy link
Member

rebasing for temporary testing in pre-production

@gregcorbett gregcorbett force-pushed the GT-471-Shib/CheckIn-Token-reads-config-file branch 7 times, most recently from eb5ddab to 277ad7e Compare January 29, 2025 16:37
Sae126V and others added 7 commits January 29, 2025 16:49
- 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.
@gregcorbett gregcorbett force-pushed the GT-471-Shib/CheckIn-Token-reads-config-file branch from fbd2e29 to 637dcd8 Compare January 29, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants