Logout of SAML Added in 7.5.0

POST /_security/saml/logout

Submits a request to invalidate an access token and refresh token.

application/json

Body Required

  • token string Required

    The access token that was returned as a response to calling the SAML authenticate API. Alternatively, the most recent token that was received after refreshing the original one by using a refresh_token.

  • The refresh token that was returned as a response to calling the SAML authenticate API. Alternatively, the most recent refresh token that was received after refreshing the original access token.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
POST /_security/saml/logout
curl \
 -X POST http://api.example.com/_security/saml/logout \
 -H "Content-Type: application/json" \
 -d '{"token":"string","refresh_token":"string"}'
Request examples
{
  "token": "string",
  "refresh_token": "string"
}
Response examples (200)
{
  "redirect": "string"
}