-
Notifications
You must be signed in to change notification settings - Fork 38
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
Id token and access token do not get the updated user info when doing AcquireTokenSilentAsync #75
Comments
@nataliahering : yes, this is a limitation of the B2C service. It takes some time. |
@jmprieur For the revoke session case, how can I then as an admin ensure that a user gets blocked from starting the app while the refresh token that he got from the very first (interactive) sign in is still valid? I was planning to acquire token silently upon every startup (after the first interactive sign in). |
For the user claims, can we in the acquire token silently still call the custom API if we use custom policies? So that at least if in step 2 instead of updating some of the default claims in b2c, we update some of the custom logic behind our custom claims, we can ensure that in step 3 we get the updated information. |
cc: @jennyf19 and @nickgmicrosoft for the second question if they understand better than me. |
@jmprieur I want to be able to call a custom API, not only upon interactive sign in /sign up (which can be easily achieved by following the steps of the custom policies here https://docs.microsoft.com/en-us/azure/active-directory-b2c/custom-policy-rest-api-claims-exchange), but also when I call I saw this post Regarding the revokation of the refresh token, if I revoke the user's session from the portal and then call Many thanks |
I am doing the following steps
which is in the
SignInButton_Click
code of this sample.an id token is returned, which includes several claims including for example the user's first name - which right now is "name1".
After the above call is done, I manually update the information of the user in the azure portal (eg. update the first name from "name1" to be "name2"). In reality, I would not update the user's info in the portal but I could have some other application updating the user's information using graph API while the user still has a valid refresh token.
Do this call
in the id token of this auth result, I still get the "name1" as in the call of step 1 (instead of the "name2" as updated in step 2). If instead of acquiring the token silently, I do an interactive one then I will get the correct name.
Is the
.WithForceRefresh(true)
not enough? How can I force get the user's latest information without requiring user interaction?thanks
The text was updated successfully, but these errors were encountered: