Closed j4inam closed 1 month ago
@j4inam YES! 🚀 Can you fix this test and then we can merge?
--- FAIL: TestGetProfilePage (0.00s)
panic: interface conversion: interface {} is nil, not []helpers.RoleClaim [recovered]
panic: interface conversion: interface {} is nil, not []helpers.RoleClaim
This PR implements extraction of Authorizations (Roles) for currently authenticated user and adds them to request context.
Roles can be accessed in handlers using the request context like:
roleClaims := ctx.Value("roleClaims").([]helpers.RoleClaim)
Sample Role Claims object:
Users can be assigned or revoked off of Authorizations using Zitadel Console or Using Zitadel Management APIs as shown in this video:
https://github.com/user-attachments/assets/69cf3b44-0736-452a-983c-3854ed9da859