Revoke token endpoint¶
Endpoint URL: GET /oauth2/revoke
This endpoint invalidates access_token
.
Request¶
Example request for revoking token¶
$ curl --location --request GET 'https://connect.okonto.pl/oauth2/revoke?client_id=www.example.com.front.onetapi.pl' \
--header 'Authorization: Bearer 047b0a8339c7fb9f623d3e2e8ae69c2z3eh5r4df1501pa34cba8439f7d0c2c1fcs' \
Parameters:
client_id
- value you received after registering your service
Headers:
Authorization
- authorization header should be provided in Bearer token scheme. For header value use access_token received from token endpoint.
Response¶
200 OK
Errors handling¶
400 BAD REQUEST - For all client side errors like: lack of authorization code, wrong authorization code, invalid credentials in Authorization header.
503 SERVICE UNAVAILABLE - For problems encountered on the server side.