This article describes the GeneXus Access Manager endpoint used to sign out from mobile applications.
It is a REST service that invalidates (kills) the access_token obtained at sign-in.
Method: POST
The endpoint is: https://<domain>/<virtual_directory>/oauth/logout
Headers
- Content-Type: Type of content that will be returned. Use application/x-www-form-urlencoded.
- Authorization: <access_token>; it is required to send the access_token obtained during sign-in.
&httpclient = new()
&httpclient.AddHeader("Content-Type", "application/x-www-form-urlencoded")
&httpclient.AddHeader("Authorization",<access_token>)
A successful logout returns the following response:
{
"code": "200"
}
If the endpoint execution is successful, it will return "code": "200", indicating that the logout operation was completed successfully.