mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 09:59:41 -05:00
When OAUTH2_ADMIN_GROUPS (comma/whitespace separated group names) is set, an OAuth2/OIDC user whose groups claim intersects the list becomes a Wekan admin; if set but no intersection, they are not made admin. Group-name extraction handles both string and displayName object forms. When the var is empty/unset (the default), isAdmin is left untouched so existing behavior is unchanged. This mirrors the LDAP_SYNC_ADMIN_GROUPS concept for OAuth2/OIDC. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>