IdentityModel / oidc-client-js

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
Apache License 2.0
2.43k stars 842 forks source link

Logout with POST method instead of GET #1385

Open TimonV87 opened 3 years ago

TimonV87 commented 3 years ago

In our project we would like to use a POST to call the logout endpoint, this is because our id_token can be very big and we run into problems when we do a GET request. How could we do this?

brockallen commented 3 years ago

That's not currently supported, but you could get the id_token from the UserManager and build a form yourself to POST.

TimonV87 commented 3 years ago

@brockallen Thanks for the response. So i know how to get the id_token, but what do you mean with build a form? And can i also clear all the state myself? Like the state for the user etc?