Describe the bug
I have been facing a weird intermitent issue with the logout behavior. Same one as reported here.
Looks like there's a 50% chance for the logout request to be canceled, loosing the id_token_hint that was built in the first request and creating another one with only the post_redirect_uri, causing the workflow to fail.
The other 50% of the time, the first well built request is not canceled and the workflow completes succesfuly.
I debugged the library code to this line, where the error intermitently happens.
In forums people mentioned that it could be happening due to competing event listeners on the background causing the call to be canceled.
To Reproduce
Steps to reproduce the behavior:
Make sure to have a valid post_logout_uri configured.
Login using client-secret
Logout
Check the console network tab to see requests being canceled.
The issue doesn't happen always so it might need a couple of tries to happen, but it is pretty frequent.
Expected behavior
I expected the logout to complete without requests being canceled, completing the OIDC logout workflow.
Desktop:
OS: Windows
Browsers: Chrome and Edge
Chrome Version [122.0.6261.95]
Edge Version [122.0.2365.66]
Additional context
I'm currently using version 15 of the angular-oauth2-oidc library along with Keycloak in its version 19.0.2.
Describe the bug I have been facing a weird intermitent issue with the logout behavior. Same one as reported here.
Looks like there's a 50% chance for the logout request to be canceled, loosing the id_token_hint that was built in the first request and creating another one with only the post_redirect_uri, causing the workflow to fail.
The other 50% of the time, the first well built request is not canceled and the workflow completes succesfuly.
I debugged the library code to this line, where the error intermitently happens.
In forums people mentioned that it could be happening due to competing event listeners on the background causing the call to be canceled.
To Reproduce Steps to reproduce the behavior:
The issue doesn't happen always so it might need a couple of tries to happen, but it is pretty frequent.
Expected behavior I expected the logout to complete without requests being canceled, completing the OIDC logout workflow.
Desktop:
Additional context I'm currently using version 15 of the angular-oauth2-oidc library along with Keycloak in its version 19.0.2.