Commit 2dc3348f authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'fix_oauth_doc' into 'master'

Fix a confusion in OAuth2 documentation

## What does this MR do?

fixes confusion :)

## Why was this MR needed?

Because no body wants to be confused :)

See merge request !6563
parents b9daced7 91a91557
# GitLab as an OAuth2 client
# GitLab as an OAuth2 provider
This document covers using the OAuth2 protocol to access GitLab.
......@@ -112,7 +112,7 @@ You can do POST request to `/oauth/token` with parameters:
{
"grant_type" : "password",
"username" : "user@example.com",
"password" : "sekret"
"password" : "secret"
}
```
......@@ -130,8 +130,8 @@ For testing you can use the oauth2 ruby gem:
```
client = OAuth2::Client.new('the_client_id', 'the_client_secret', :site => "http://example.com")
access_token = client.password.get_token('user@example.com', 'sekret')
access_token = client.password.get_token('user@example.com', 'secret')
puts access_token.token
```
[personal access tokens]: ./README.md#personal-access-tokens
[personal access tokens]: ./README.md#personal-access-tokens
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment