feat: link groups to OIDC groups and sync membership at SSO sign-in #20
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/oidc-group-mapping"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Admins can link an mcphub group to an identity provider group (for example an authentik group). Each SSO sign-in then keeps the user's membership in linked groups in step with the IdP's groups claim.
How it behaves
OIDC_GROUPS_CLAIM(authentik'sprofilescope sendsgroups).group_members.source(manual/oidc) separates synced members from hand-added ones. Sign-in never touches manual memberships, and editing a member list keeps each remaining member's source.access.changedand addsgroupsAdded/groupsRemovedto theauth.oidc.loginaudit entry.Changes
0003_oidc_group_links:groups.oidc_group,group_members.sourceenum.syncOidcGroupsinapps/api/src/services/auth/oidc.ts, called fromresolveOidcAccount.Group.oidcGroup, membersource, andoidcGroupon create/update bodies inpackages/shared. The admin REST API, OpenAPI and admin MCP pick these up automatically.architecture.md,configuration.md.Testing
apps/api/test/admin-users.test.tscover sync, manual members, source kept on edit, and relink.🤖 Generated with Claude Code