You can use the DELETE method to log out of the z/OSMF server and delete the user's
authentication tokens (JSON Web Tokens and LTPA tokens). Your request cookie must include a valid
JSON Web Token or LTPA token (or both).
HTTP method and URI path
DELETE /zosmf/services/authenticate
Where:
/zosmf/services specifies the z/OSMF REST services API.
/authenticate indicates an authentication request.
Query parameters
None.
Standard headers
Use the following standard HTTP header with this
request:
Content-Type: application/x-www-form-urlencoded
Customer headers
X-CSRF-ZOSMF-HEADER
This
header is required for both browser and non-browser applications. Set the header to any value or an
empty string ("").
For more information, see Allowing cross-site access to REST services.
On completion, the service returns an HTTP response, which includes a status code
that indicates whether your request completed. Status code 204 indicates success. A
status code of 4nn or 5nn indicates that an error
occurred.
Example
In the following example, the DELETE method is used to delete all the authenticated tokens when
user logs out.Figure 1. Delete the JSON Web Tokens for this user