GET /oauth/login/logout
Destroys any authentication cookies associated with the current OAuth session.
Once the API calls are made, the logout API removes the OAuthToken cookie and forces users to log in again before invoking any protected API calls.
Authorization Roles/Permissions: Anyone can run this operation.
This topic includes the following sections:
HTTP Method
GET
URL
https://{oauth-provider-url}/oauth/login/logout
Sample Request
The example below shows a request to log out.
Sample Request URL
https://{oauth-provider-url}/oauth/login/logout
Sample request headers
Accept: application/json
Sample request body
None.
Request Headers
For general information on request header values, refer to HTTP Request Headers.
Header | Description |
---|---|
Accept | application/json |
Request Parameters
None.
Response
If successful, this operation returns HTTP status code 200. The OAuthToken cookie is removed. The response payload is empty.
Sample Response
The sample response below shows successful completion of this operation.
Sample response headers: application/json
Content-Type: application/json
Sample response body: application/json
None.
Response Headers
For general information on response header values, refer to HTTP Response Headers.
Header | Description |
---|---|
Content-Type | application/json |
Response Body
The response payload is empty.
Error Codes/Messages
If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.
Item | Value |
---|---|
500 | An error occurred processing the call. |
More information about Akana OAuth API error messages.