Repository navigation
Keep attribute names containing ':' when they are received verbatim - #263
Merged
Merged
Conversation
The "prefix:attr" syntax split every attribute name on the first ':'. SAML and OAuth2 providers commonly use URIs or urn:oid names (e.g. urn:oid:1.3.6.1.4.1.5923.1.5.1.1), which were split into a bogus prefix and a missing attribute, so groups and usernames came out empty. Only apply the prefix syntax when the full name is not a received attribute.
…olon-attribute-names
aschumann-virtualcable
deleted the
v5.0-fix/auth-regex-colon-attribute-names
branch
November 24, 2026 17:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The "prefix:attr" syntax of regex fields split every attribute name on the first ':'.
SAML and OAuth2 providers commonly use names such as urn:oid:1.3.6.1.4.1.5923.1.5.1.1 or
URIs, so the lookup used a prefix and a missing attribute, and groups and usernames came
back empty.
The prefix syntax is now applied only when the full name is not among the received
attributes. Existing "prefix:attr" configurations (for example alumno:alumno) keep
working.
Tests:
It fails without this change.
The 4.0 counterpart is not part of this PR.