Skip to content

fix(auth): collapse leading-slash OIDC group paths to one group#370

Merged
aktech merged 1 commit into
mainfrom
fix/oidc-group-normalize-dedup
Jun 2, 2026
Merged

fix(auth): collapse leading-slash OIDC group paths to one group#370
aktech merged 1 commit into
mainfrom
fix/oidc-group-normalize-dedup

Conversation

@aktech

@aktech aktech commented Jun 2, 2026

Copy link
Copy Markdown
Member

When a Keycloak client carries both group-membership mappers (full.path=true → /developer, full.path=false → developer), the groups claim holds both forms and SyncOIDCGroups created two groups for one real group. Strip the leading / before upsert so they dedup to one. Adds a regression test.

Keycloak can carry two group-membership mappers on one client: full.path=true
emits "/developer", full.path=false emits "developer". Both land in the
`groups` claim, so SyncOIDCGroups created two groups for one Keycloak group.

Strip the leading slash before upsert so the two forms dedup to a single
oidc group.
@netlify

netlify Bot commented Jun 2, 2026

Copy link
Copy Markdown

Deploy Preview for nebi-docs canceled.

Name Link
🔨 Latest commit 7f9bda1
🔍 Latest deploy log https://app.netlify.com/projects/nebi-docs/deploys/6a1edc318d268d000888ed15

@aktech aktech merged commit cbac786 into main Jun 2, 2026
14 checks passed
@aktech aktech deleted the fix/oidc-group-normalize-dedup branch June 2, 2026 15:07
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.

2 participants