question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logout failed because query parameter post_logout_redirect_uri is set but id_token_hint is missing.

See original GitHub issue

Describe the bug

I used the config postLogoutRedirectUri but after I call function to logOut this.oauthService.logOut(); the SSO server returns this error:

The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Logout failed because query parameter post_logout_redirect_uri is set but id_token_hint is missing.

Please help me with your advice, many thanks.

Expected behavior

Can logOut successful.

Desktop (please complete the following information):

  • OS: Window 11
  • Browser Chrome
  • Version 106.0.5249.119 (Official Build) (64-bit)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
jeroenheijmanscommented, Oct 19, 2022

Not sure if you’re expecting a specific response from me, but I might not have time to dive deeply into your situation. I mostly moderate issues here and answer the ones I can quickly solve, but for other stuff I do also rely on the broader community to help each other out.

Just as an aside, what you could also try is clone my sample repository and reconfigure it against your own IDS, to see if that gives the same issue. (If so, things might be a problem on your IDS side?)

Hope that makes sense! And again: perhaps a community member can chip in?

1reaction
thenewnetcommented, Oct 16, 2022

You can check the main service for sources and match it up with your own setup and configuration? Since we don’t have access to your (relevant) code, nor to your SSO Server, we can’t really support much…

Thank you, i will try to create a repo for reprocedure purpose.

Read more comments on GitHub >

github_iconTop Results From Across the Web

connect/endsession from SPA client - missing logoutId #396
The Get method should call the POST method, which it doesn't - it redirects to the Logout.cshtml view because no logonId is set....
Read more >
IdentityServer4 PostLogoutRedirectUri - Stack Overflow
The missing piece of the puzzle is to configure OIDC in the client ... SetParameter("PostLogoutRedirectUri", "yet another URL that's going ...
Read more >
Logout Redirect Page - Questions - Okta Developer Community
Logout redirect causes this error: {“errorCode”:“invalid_client”,“errorSummary”:“Invalid value for 'client_id' parameter.
Read more >
IdentityServer/IdentityServer4 - Gitter
But i used my local machine android client to login with identity server and get access token is successfully, but not able to...
Read more >
OpenID Connect Logout - Medium
The query parameters are as follows (from the spec):. id_token_hint: Previously issued ID Token passed to the logout endpoint as a hint about ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found