Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some small fixes in this great example #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant