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

Refresh user if not valid #3

Open
freever opened this issue Feb 2, 2020 · 0 comments
Open

Refresh user if not valid #3

freever opened this issue Feb 2, 2020 · 0 comments

Comments

@freever
Copy link
Contributor

freever commented Feb 2, 2020

If we can't get a resolution to this:
https://stackoverflow.com/questions/60016498/azure-ad-b2c-how-to-propogate-new-user-claims-to-the-access-token

Then we need to change
TUser ExtractUser(ClaimsPrincipal claimsPrincipal);

To
ValueTask<TUser >ExtractUserAsync(ClaimsPrincipal claimsPrincipal);

Add an IsValid property to TUser so that if it doesn't contain what it needs after being extracted from the ClaimsPrincipal, we can fetch it from Azure.

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

No branches or pull requests

1 participant