-
Notifications
You must be signed in to change notification settings - Fork 435
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
11.1.2 Returns tokens but doesn't apply them #759
Comments
Hey @JohnGalt1717, which flow are you using? Do you have an example config? Thanks |
|
@JohnGalt1717 I'll test this, but it should work. Will test again. We don't have an check it the renew is already running, so if you call this multiple times before the last renew is finished, the tokens will be null maybe. Just trying to understand what goes wrong, I'll test this again Thanks for reporting. Greetings Damien |
@JohnGalt1717 thanks for reporting. The forkJoin we use only returns once, then it no longer works. For the moment, until we fix, the authenticated$ event can be used and the get token. |
@damienbod I'm confused. I would assume that every time I call the force function it should return the updated tokens AND apply them. That isn't happening with silent renew per the release notes. I either get null or I get the new ones returned by they're not applied to the authentication. (id) Doesn't seem to matter if it's the first time or the next time after that, but I would assume that it would return once and only once on the call on subscribe, but every time you call the force function it would work properly and return the updated tokens applied to the security service? |
Hi @JohnGalt1717 yes, this is what should happen, and we have an implementation bug. :( We fix this now. Greetings Damien |
Thanks! |
fixed in version 11.1.3, thanks for reporting |
Describe the bug
11.1.2 gets the tokens and returns them on forceRefreshSession. Sometimes the result is null, sometimes the tokens are there. But they don't apply to the authentication so the getPayloadFromIdToken() call still returns the old token in all cases.
Happens on all browsers.
Should await the silent renew or refresh call and not return until completed and then return the tokens but also apply them to the authentication configuration so that getPayloadFromIdToken() returns the current authentication.
The text was updated successfully, but these errors were encountered: