summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-08-01 12:48:09 +0000
committerRémy Coutable <remy@rymai.me>2016-08-01 12:48:09 +0000
commit74d4f3deb8360f16af83ee596bbbcadaa39e7a05 (patch)
treeeb79c4625e94829ada478dc1fb0e6730ebde85a5 /doc
parentc5fd3d5be98fe94cc4c3cb2853ecc0364c66f807 (diff)
parentf178d0c73f838b3fa83ed462c413c0c88ef9dbbc (diff)
downloadgitlab-ce-74d4f3deb8360f16af83ee596bbbcadaa39e7a05.tar.gz
Merge branch 'patch-3' into 'master'
Changed grant_type=AUTHORIZATION_CODE for grant_type=authorization_code ## What does this MR do? Changed grant_type=AUTHORIZATION_CODE for grant_type=authorization_code ## Why was this MR needed? Using the example when provided the parameter grant_type=AUTHORIZATION_CODE the server returns a error: ```json {"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported by the authorization server."} ``` See merge request !5539
Diffstat (limited to 'doc')
-rw-r--r--doc/api/oauth2.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/oauth2.md b/doc/api/oauth2.md
index 31902e145f6..7ce89adc98b 100644
--- a/doc/api/oauth2.md
+++ b/doc/api/oauth2.md
@@ -35,7 +35,7 @@ Where REDIRECT_URI is the URL in your app where users will be sent after authori
To request the access token, you should use the returned code and exchange it for an access token. To do that you can use any HTTP client. In this case, I used rest-client:
```
-parameters = 'client_id=APP_ID&client_secret=APP_SECRET&code=RETURNED_CODE&grant_type=AUTHORIZATION_CODE&redirect_uri=REDIRECT_URI'
+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
# The response will be