diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-22 03:09:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-22 03:09:28 +0300 |
commit | 1f4988374d6c9870044a93c51e2016853193e8cf (patch) | |
tree | d17ac78a0dde4ccb9f36a6acceafa265a08a7134 /doc/api/oauth2.md | |
parent | 0fba9a23d015b64690ed9e6405d7fba2efbd227d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/oauth2.md')
-rw-r--r-- | doc/api/oauth2.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api/oauth2.md b/doc/api/oauth2.md index abf9d7af229..fcb7477f226 100644 --- a/doc/api/oauth2.md +++ b/doc/api/oauth2.md @@ -412,6 +412,16 @@ prevent breaking changes introduced in [doorkeeper 5.0.2](https://github.com/doo Don't rely on these fields as they are slated for removal in a later release. +## Revoke a token + +To revoke a token, use the `revoke` endpoint. The API returns a 200 response code and an empty +JSON hash to indicate success. + +```ruby +parameters = 'client_id=APP_ID&client_secret=APP_SECRET&token=TOKEN' +RestClient.post 'https://gitlab.example.com/oauth/revoke', parameters +``` + ## OAuth 2.0 tokens and GitLab registries Standard OAuth 2.0 tokens support different degrees of access to GitLab |