Skip to content

Conversation

donwibier
Copy link

@donwibier donwibier commented Aug 27, 2019

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 :-)

… 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.
Update to preview8
@donwibier donwibier changed the title ApiAuthenticationStateProvider.MarkUserAsAuthenticated() receives the… Some small fixes in this great example Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant