summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando Derkoski <brilvio@gmail.com>2016-07-28 02:02:39 +0000
committerFernando Derkoski <brilvio@gmail.com>2016-07-28 02:02:39 +0000
commitf178d0c73f838b3fa83ed462c413c0c88ef9dbbc (patch)
tree3c6b22cc1b35e894eb24f4c4d5acc0469ec0df38
parent17be364d072298f42d77fd22189bf9289b7cda2e (diff)
downloadgitlab-ce-f178d0c73f838b3fa83ed462c413c0c88ef9dbbc.tar.gz
Changed grant_type=AUTHORIZATION_CODE for grant_type=authorization_code
-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