During the logout, a 400 Bad Request error appears with the v1/logout URL.
- Logout Endpoint (
/v1/logout) - Open ID Connect application
- 400 Bad Request
This error is returned because the value of ${redirect_uri} used in the authorize request is not registered in the Open ID client in Okta as an allowed Logout redirect URIs.
In the following example of the v1/logout request:
https://example.okta.com/oauth2/v1/logout?id_token_hint=eyJraWQiOi&post_logout_redirect_uri=http://localhost:8080
Make sure that the redirect_uri http://localhost:8080 is registered as an allowed Logout redirect URI in OpenID Client for the application being used:
- From the Applications page of the Okta Admin Console, navigate to the OpenID application (there is also the possibility to navigate here directly by using the URL that appears in the error description).
- In the General tab, click Edit and add http://localhost:8080 as a Logout redirect URI.
- Click Save. The General settings should look like:
