You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.
We have an unusual scenario, so we're hoping someone could help us out.
We have an Angular 2 SPA app that gets authenticated against Azure AD. This returns to us an id_token, which we then use to hit our own API to generate an access_token with all the roles and expiration times in it. We call our API inside the signInRedirectCallback method after we acquire an id_token from Azure AD.
So far this flow works, the only thing we can't seem to be able to do is to update the current user details stored in the local storage with additional profile info and token expiration times. The oidc.user object in the local storage gets set just before it reaches the signInRedirectCallback method and we don't know how to override it with the new user object with additional details.
Could anyone please advise on how this could possibly be achieved?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
We have an unusual scenario, so we're hoping someone could help us out.
We have an Angular 2 SPA app that gets authenticated against Azure AD. This returns to us an id_token, which we then use to hit our own API to generate an access_token with all the roles and expiration times in it. We call our API inside the signInRedirectCallback method after we acquire an id_token from Azure AD.
So far this flow works, the only thing we can't seem to be able to do is to update the current user details stored in the local storage with additional profile info and token expiration times. The oidc.user object in the local storage gets set just before it reaches the signInRedirectCallback method and we don't know how to override it with the new user object with additional details.
Could anyone please advise on how this could possibly be achieved?
Thanks
The text was updated successfully, but these errors were encountered: