Skip to content

Add WEKO_ACCOUNTS_SHIB_ROLE_MANUAL_ASSIGN for role preservation - #1890

Merged
mhaya merged 1 commit into
feature/nii_WACREN_prefrom
feature/shib-role-manual-assign
Aug 11, 2026
Merged

Add WEKO_ACCOUNTS_SHIB_ROLE_MANUAL_ASSIGN for role preservation#1890
mhaya merged 1 commit into
feature/nii_WACREN_prefrom
feature/shib-role-manual-assign

Conversation

@mhaya

@mhaya mhaya commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Shibboleth login clears and recalculates user roles on every check_in. In environments where the IdP does not send isMemberOf, this wipes the roles an administrator set from the admin screen and can refuse the login entirely.

Add WEKO_ACCOUNTS_SHIB_ROLE_MANUAL_ASSIGN (default False). When True, ShibUser.check_in() returns immediately so no role is cleared, assigned from shib_role_authority_name, or bound from Gakunin mAP groups. The existing behavior is unchanged when the flag is off.

…oles

Shibboleth login clears and recalculates user roles on every check_in.
In environments where the IdP does not send isMemberOf, this wipes the
roles an administrator set from the admin screen and can refuse the
login entirely.

Add WEKO_ACCOUNTS_SHIB_ROLE_MANUAL_ASSIGN (default False). When True,
ShibUser.check_in() returns immediately so no role is cleared, assigned
from shib_role_authority_name, or bound from Gakunin mAP groups. The
existing behavior is unchanged when the flag is off.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@mhaya
mhaya merged commit 4cdca13 into feature/nii_WACREN_pre Aug 11, 2026
0 of 90 checks passed
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