Skip to content

Service: OAuth2 Token Revocation

Eliza Margaretha edited this page Apr 23, 2021 · 10 revisions

revokes either an access token or a refresh token. When revoking a refresh token, all access tokens associated with the refresh token are also revoked. Client authentication is required for confidential clients.

Available in: full version

Method: POST

Service URL: root/oauth2/revoke

Parameters

Header Parameters

Name Required Description Value
Content-Type yes content type of the input data application/x-www-form-urlencoded

Form Parameters

Name Required Description Type
client_id yes a client id String
client_secret no, for public clients
yes, for confidential clients
the client secret String
token yes an access token or a refresh token String
token_type no hint about the token type: access_token or refresh_token String

Examples

Revoking an access token of a public client

curl -H 'Content-Type: application/x-www-form-urlencoded' 
     -d 'client_id=io8MvuTN3reflIaESwe5tGd&token=mPUkiQ86cT1YeblMqjr9'
     http://localhost:8089/api/v1.0/oauth2/revoke

Revoking a refresh token of a confidential client

curl -H 'Content-Type: application/x-www-form-urlencoded' 
     -d 'client_id=YMirwQ-beCp5Rxiw4yH&client_secret=nS8cz9Fa5Wl2fbHrM
         &token=Q4lxNpch72FUwhO&token_type=refresh_token'
     http://localhost:8089/api/v1.0/oauth2/revoke

References

Hardt, D., Ed., The OAuth 2.0 Authorization Framework, RFC 6749, October 2012. [Online]. Available: https://tools.ietf.org/html/rfc6749

Lodderstedt, T., Ed., and Scurtescu, M., OAuth 2.0 Token Revocation , RFC 7009, August 2013. [Online]. Available: https://tools.ietf.org/html/rfc7009

Parecki, Aaron. OAuth 2.0 Servers. [Online]. Available: https://www.oauth.com/

Advanced Setting

Developer Setting

Search services

Metadata services

Authentication and Authorization services

Client services

Super client services

Plugin services

User services

User group services

Virtual corpus (VC) services

VC sharing services

Administrative services

Description services

Clone this wiki locally