feat: resolve role-based authorization by extracting Roles claim from JWT and storing in state provider
This commit is contained in:
@@ -48,6 +48,7 @@ public class ServerIdentityService : IIdentityService
|
||||
await _storageService.SaveSecureString(StorageKeys.RefreshToken, "");
|
||||
await _storageService.SaveSecureString(StorageKeys.UserEmail, "");
|
||||
await _storageService.SaveSecureString(StorageKeys.UserTenant, "");
|
||||
await _storageService.SaveSecureString(StorageKeys.UserRoles, "");
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -88,7 +89,8 @@ public class ServerIdentityService : IIdentityService
|
||||
dto.TenantId,
|
||||
dto.Plan,
|
||||
dto.AverageQuizScore,
|
||||
dto.LastReadBook
|
||||
dto.LastReadBook,
|
||||
dto.Roles
|
||||
);
|
||||
|
||||
return Result.Ok(profile);
|
||||
|
||||
Reference in New Issue
Block a user