-
Notifications
You must be signed in to change notification settings - Fork 436
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
[Bug]: Logoff and Id Token #1602
Comments
Hey thanks for this issue. I'll have a look on this. We did not notice this during testing but of course we'll have a look. Thanks! |
Can you provide a sample repo where we can reproduce this? Because in our testing, we did not have this case. Thanks! |
Ok, I'll try to do that asap. |
Thanks for your help. |
I think you are right, this is a bug. Can I do a PR and you try the lib on the branch of the PR? Then you can let us know whether this fixes your issue or not. Is that okay for you? |
Yes sure |
Thanks. Check the linked PR. Have to go through it and see if what I found makes sense. Found two other things which were wrong. Thanks! Would not have noticed them without you :) But you can test. Will have a look at the tests now. |
I was able to test your branch and it solves my problem. The |
Alright, perfect. Thanks for the quick testing. I will fix the tests and we'll do the merge and release then. Thanks! ❤️ |
Dup #1607 |
Version
15.0.0
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
In the previous version, when I was calling the logoff function, it was calling the following "endsession" url:
But after upgrading to 15.0.0 it's calling this:
I have debugged a bit and I have noticed that the logoff function is calling
this.resetAuthDataService.resetAuthorizationData(config, allConfigs)
which remove the id token from local storage. The next line of code is callingthis.urlService.getEndSessionUrl(config, customParams)
which try to get to id token from local storage but of course it's already gone. Therefore theid_token_hint
is missing from the end session url.Steps to reproduce the behavior
No response
A clear and concise description of what you expected to happen.
It should call the "endsession" endpoint with the id token parameter.
Additional context
No response
The text was updated successfully, but these errors were encountered: