Skip to main content

Update Logout Flow

GET 

/auth/self-service/logout

This endpoint logs out an identity in a self-service manner.

If the Accept HTTP header is not set to application/json, the browser will be redirected (HTTP 303 See Other) to the return_to parameter of the initial request or fall back to urls.default_return_to.

If the Accept HTTP header is set to application/json, a 204 No Content response will be sent on successful logout instead.

This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...).

Request

Responses

Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201.