diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-28 03:08:37 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-28 03:08:37 +0300 |
commit | 6985123d928aa3b5061f5ed19208407b550ab4e8 (patch) | |
tree | e990ca2c3c578d06fdcb9c4ae87084e8f68f310b /doc/api/oauth2.md | |
parent | 47579e24f3f9f29d5b8093f54e6958fefd7f2057 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/oauth2.md')
-rw-r--r-- | doc/api/oauth2.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/oauth2.md b/doc/api/oauth2.md index a146fdd0d0c..0bf7ae399f0 100644 --- a/doc/api/oauth2.md +++ b/doc/api/oauth2.md @@ -177,7 +177,7 @@ Example cURL request: ```shell echo 'grant_type=password&username=<your_username>&password=<your_password>' > auth.txt -curl --data "@auth.txt" --request POST https://gitlab.example.com/oauth/token +curl --data "@auth.txt" --request POST "https://gitlab.example.com/oauth/token" ``` Then, you'll receive the access token back in the response: @@ -210,7 +210,7 @@ GET https://gitlab.example.com/api/v4/user?access_token=OAUTH-TOKEN or you can put the token to the Authorization header: ```shell -curl --header "Authorization: Bearer OAUTH-TOKEN" https://gitlab.example.com/api/v4/user +curl --header "Authorization: Bearer OAUTH-TOKEN" "https://gitlab.example.com/api/v4/user" ``` ## Retrieving the token information @@ -229,7 +229,7 @@ You must supply the access token, either: - In the Authorization header: ```shell - curl --header "Authorization: Bearer <OAUTH-TOKEN>" https://gitlab.example.com/oauth/token/info + curl --header "Authorization: Bearer <OAUTH-TOKEN>" "https://gitlab.example.com/oauth/token/info" ``` The following is an example response: |