Using v. 9.0.8 (same issue in earlier versions)
response_type: "code"
silent_renew: true
identity server 4
Hi
Have some issues where the user gets logged out after a period of inactivity or when opening a new window/Tab (Not every time).
Console output:
IsAuthorizedRace: Timeout reached. Emitting.
authorizedCallback incorrect nonce
authorizedCallback, token(s) validation failed, resetting
This happens on loading/refreshing the app. Have tried to do some research regarding the errors and the incorrect nonce is usually caused by multiple calls to authorize. On load the app does not call “authorize function” explicitly. I have a guard and a resolver on the app invoking getIsAuthorized. Wil this cause the authorize being called twice?
@mnesser - Any follow-up on this? I've been noticing that in a similar situation, once in a while, if I hit F5, it takes me back to my Login page. I can't perfectly reproduce it all the time.
We still have the same issue..
@mnesser @DaleyKD Wondering what I need to do here, what to check. I plan to improve how the tokens are stored so that you can host multiple applications in different tabs.
If the id_token is expired, then you need to login again, this sounds correct to me. If the session on the IdentityServer is active, the silent renew should work. If the server session is expired, then you get logged out and need to login again.
Could it be that the server session expires? You can fix this in the ID4 cookies.
Greetings Damien
I am experiencing the same issue. The module of the client is set up to silent renew, the CSP header is set to allow frame ancestors with the origin of. the STS. The iframe actually loads eventually. However, whilst logged-in in one tab, opening the same url in a new tab forces the user to log-in again. What are the possible reasons for this?
My main unknown, which I cannot get clear from the documentation, is why we have to set up the configuration in two places. The auth-client-config.json and in the module once again with values from this file.
This has been refactored and fixedin verison 11 which we plan to release in the next few days after testing
Greetings Damien
Most helpful comment
This has been refactored and fixedin verison 11 which we plan to release in the next few days after testing
Greetings Damien