feat(SAML): Support attributes with namespace #8931
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Support Microsoft Entra ID (formaly Azure Active Directory) out of the box. They're sending
emailaddress
andname
prefixed with the http://schemas.xmlsoap.org/ws/2005/05/identity/claims/ namespace. Map those to values we expect.Instead of stripping all URI prefixes, I decided to just map these explicitly to avoid cases where there could be duplicate values in different namespaces (although extremely unlikely)
Demo
https://www.loom.com/share/6d23e89c31d84ef0b2784e2139d781fb?sid=d850e510-ba6c-47be-b85f-ca665a5edad9
Testing scenarios
Final checklist
One Review Required
if the PR introduces only minor changes, does not contain any architectural changes or does not introduce any new patterns and I think one review is sufficient'