Description
Use this API to revoke an access token. It needs a request with a valid access_token in the form of an Authorization: Bearer <access_token>. It will return a JSON confirmation message or an error message.
Example Query
Code Block |
---|
language | text |
---|
title | POST Query URI |
---|
|
http://danteweb.lnf.infn.it:8000/auth/logout/access |
PAYLOAD:
Code Block |
---|
language | text |
---|
title | POST Query headerHeader |
---|
|
Authorization: Bearer <access_token> |
It will return:
Code Block |
---|
language | js |
---|
title | API Response |
---|
|
{
"message": "Access token has been revoked"
} |
...