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

[Question]: How to get updated user details (AzureAD identity) #1900

Open
mscmnc opened this issue Feb 19, 2024 · 1 comment
Open

[Question]: How to get updated user details (AzureAD identity) #1900

mscmnc opened this issue Feb 19, 2024 · 1 comment
Labels

Comments

@mscmnc
Copy link

mscmnc commented Feb 19, 2024

What Version of the library are you using?
Angular v.17
angular-auth-oidc-client version v16.0.1

Question
How can I get the latest information about the user? Without re-login?

We authenticate through Azure AD, utilizing refresh tokens, and so forth, and everything works fine except for one issue: I can't comprehend how to retrieve the updated user details in real-time if the username or surname has been changed.
For instance, in our application, we can modify our name in Azure AD, and upon change, Azure AD promptly returns the updated name. However, the angular-auth-oidc-client's userData observable continues to display the old data.

After successfully updating the information, I perform a forceRefreshSession, but it continues to return the old data, even with 5-second delay. If I attempt the action again, it returns the updated data. I don't understand this behavior.

My configuration:

silentRenew: true
useRefreshToken: true
autoUserInfo: false
renewUserInfoAfterTokenRenew: true
ignoreNonceAfterRefresh: true

Thank you for your help!

@FabianGosebrink
Copy link
Collaborator

I am not sure whether it is possible to retrieve the user information at real-time, so without login and logout @damienbod ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants