WorkClub Automation bb373a6b8e Fix admin authorization check - properly parse realm_access claim
The realm_access claim in JWT is a JSON object, not a simple string.
Previous string contains check was looking for escaped quotes in wrong format.

- Parse realm_access as JSON to extract roles array
- Check if 'admin' exists in roles array
- Fallback to string contains check if JSON parsing fails
- Applied fix in RequireGlobalAdmin policy, TenantValidationMiddleware,
  and ClubRoleClaimsTransformation

Fixes: Admin users getting 401 when trying to create clubs
2026-03-19 22:13:40 +01:00
2026-03-18 12:07:34 +01:00
S
Description
No description provided
3 MiB
Test Latest
2026-03-08 14:27:26 +01:00
Languages
HTML 54.2%
C# 27%
TypeScript 15.6%
Shell 1.7%
Python 0.7%
Other 0.7%