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

Fix handling of SAML optional attributes #92

Merged
merged 3 commits into from
Aug 26, 2024
Merged

Conversation

markpatton
Copy link
Contributor

Some SAML attributes, employee id and affiliation, are optional. A bug was requiring them instead.

@markpatton markpatton requested a review from rpoet-jh August 26, 2024 14:02
}

@Test
public void testParseUserMissingEmployeeIdAndAffiliation() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there are test for missing required attributes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. That is a good point.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a test for that case.

@markpatton markpatton merged commit a2a3429 into main Aug 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optional SAML user attributes not correctly handled
2 participants