Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-09-22 03:09:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-22 03:09:28 +0300
commit1f4988374d6c9870044a93c51e2016853193e8cf (patch)
treed17ac78a0dde4ccb9f36a6acceafa265a08a7134 /doc/api/oauth2.md
parent0fba9a23d015b64690ed9e6405d7fba2efbd227d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/oauth2.md')
-rw-r--r--doc/api/oauth2.md10
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