Logout of OpenID Connect
Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate
API.
If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout.
Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients.
Body Required
-
The access token to be invalidated.
-
refresh_token string
The refresh token to be invalidated.
POST
/_security/oidc/logout
curl \
-X POST http://api.example.com/_security/oidc/logout \
-H "Content-Type: application/json" \
-d '{"access_token":"string","refresh_token":"string"}'
Request examples
{
"access_token": "string",
"refresh_token": "string"
}
Response examples (200)
{
"redirect": "string"
}