diff options
author | Rémy Coutable <remy@rymai.me> | 2017-02-09 20:48:29 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-02-09 20:48:29 +0300 |
commit | 83b21c2401a1b0fd3f6a157503e3298e3b1d7945 (patch) | |
tree | 9fce4c2ce53484e071fbd7199bae4d3e50613e30 /doc/api | |
parent | 01e95b065e92d00fc46212177532dcfc819d5a29 (diff) | |
parent | effc6c1703dd397726fefcc930c89c76e0dc4455 (diff) |
Merge branch 'patch-9' into 'master'
oauth2.md: should use the provider's URL which is gitlab.example.com
See merge request !8173
Diffstat (limited to 'doc/api')
-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 5ef5e3f5744..eab532af594 100644 --- a/doc/api/oauth2.md +++ b/doc/api/oauth2.md @@ -57,7 +57,7 @@ Once you have the authorization code you can request an `access_token` using the ``` parameters = 'client_id=APP_ID&client_secret=APP_SECRET&code=RETURNED_CODE&grant_type=authorization_code&redirect_uri=REDIRECT_URI' -RestClient.post 'http://localhost:3000/oauth/token', parameters +RestClient.post 'http://gitlab.example.com/oauth/token', parameters # The response will be { @@ -77,13 +77,13 @@ You can now make requests to the API with the access token returned. The access token allows you to make requests to the API on a behalf of a user. ``` -GET https://localhost:3000/api/v3/user?access_token=OAUTH-TOKEN +GET https://gitlab.example.com/api/v3/user?access_token=OAUTH-TOKEN ``` Or you can put the token to the Authorization header: ``` -curl --header "Authorization: Bearer OAUTH-TOKEN" https://localhost:3000/api/v3/user +curl --header "Authorization: Bearer OAUTH-TOKEN" https://gitlab.example.com/api/v3/user ``` ## Resource Owner Password Credentials |