Skip to content

[oidc-mock] add group claims API to mock#36626

Open
mtabebe wants to merge 1 commit into
MaterializeInc:mainfrom
mtabebe:ma/sso/oidc-scim
Open

[oidc-mock] add group claims API to mock#36626
mtabebe wants to merge 1 commit into
MaterializeInc:mainfrom
mtabebe:ma/sso/oidc-scim

Conversation

@mtabebe
Copy link
Copy Markdown
Contributor

@mtabebe mtabebe commented May 19, 2026

Problem:
If a SCIM event adds or removes a user from a group, then the user reconnects and their JWT should reflect the new state.

Solution:
Add generate_jwt_with_groups, set_user_groups, and clear_user_groups to OidcMockServer for group claim injection in tests.

Tests:
Add test_oidc_generate_jwt_with_groups and
test_oidc_set_user_groups_registry to cover the new API.

@mtabebe mtabebe force-pushed the ma/sso/oidc-scim branch from 0e1c9e2 to f3b2283 Compare May 19, 2026 19:23
Problem:
If a SCIM event adds or removes a user from a group, then the user
reconnects and their JWT should reflect the new state.

Solution:
Add generate_jwt_with_groups, set_user_groups, and clear_user_groups
to OidcMockServer for group claim injection in tests.

Tests:
Add test_oidc_generate_jwt_with_groups and
test_oidc_set_user_groups_registry to cover the new API.
@mtabebe mtabebe force-pushed the ma/sso/oidc-scim branch from f3b2283 to f409c67 Compare May 19, 2026 19:31
@mtabebe mtabebe requested a review from SangJunBak May 19, 2026 19:36
@mtabebe mtabebe marked this pull request as ready for review May 19, 2026 19:36
@mtabebe mtabebe requested a review from a team as a code owner May 19, 2026 19:36
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.

1 participant