ApiAuthenticationStateProvider.MarkUserAsAuthenticated() receives the token instead of loginModel.Email.
This will generate an AuthenticatedUser including role claims etc.
The ParseClaimsFromJwt has been changed to check if the roles claim contains an array and enumerate through the roles in the array instead of the check for '[' etc.
While I was at it, I've updated to preview8 :-)
ApiAuthenticationStateProvider.MarkUserAsAuthenticated() receives the token instead of loginModel.Email.
This will generate an AuthenticatedUser including role claims etc. The ParseClaimsFromJwt has been changed to check if the roles claim contains an array and enumerate through the roles in the array instead of the check for '[' etc. While I was at it, I've updated to preview8 :-)