提交 2dc3348f 编写于 作者: A 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
# 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册