oidc-client icon indicating copy to clipboard operation
oidc-client copied to clipboard

logout is not calling end_session endpoint

Open bhargavmullakuru opened this issue 10 months ago • 4 comments

Issue and Steps to Reproduce

Hi @guillaume-chervet , i found a bug, logout is not working as it is not calling end_session end point. but my oidc server supports and returning the url. because of this, next time when i try to login it is trying to login with the previous credentials and getting bad request error while requesting the token.

Pls let me know anything i need to configure for this.. ?

Thanks in advance.

Versions

7.22.0

Screenshots

Screenshot 2024-04-13 120304

Expected

Actual

Additional Details

  • Installed packages:

bhargavmullakuru avatar Apr 17 '24 04:04 bhargavmullakuru

Hi @bhargavmullakuru , thank you for your issue. What behavior do you when calling logout method? Do you retrieve idToken scope? Do you have an url set in you endpoint in you wellknowurl ?

https://github.com/AxaFrance/oidc-client/blob/c555370d34f1e3903a0eff19f42b4c6c3d5e2781/packages/oidc-client/src/logout.ts#L132

guillaume-chervet avatar Apr 17 '24 05:04 guillaume-chervet

@guillaume-chervet . I have the end_session url in well-known. But it's not getting called on logout ()

bhargavmullakuru avatar Apr 19 '24 13:04 bhargavmullakuru

I just want library to call session end point url to close the session and clear the logged in credentials. Currently the URL is not calling and session is getting reinitiating with previously logged in user when click on sign in button.

bhargavmullakuru avatar Apr 19 '24 17:04 bhargavmullakuru

Hi @bhargavmullakuru ,

Do you retrieve idToken scope? It is necessary for logout. Do you have more information that i can use to help you? What does look like your configuration?

guillaume-chervet avatar Apr 19 '24 19:04 guillaume-chervet