Skip to content
Snippets Groups Projects
Commit 2dc3348f authored by Achilleas Pipinellis's avatar Achilleas Pipinellis
Browse files

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
No related branches found
No related tags found
No related merge requests found
# GitLab as an OAuth2 client # GitLab as an OAuth2 provider
   
This document covers using the OAuth2 protocol to access GitLab. This document covers using the OAuth2 protocol to access GitLab.
   
Loading
@@ -112,7 +112,7 @@ You can do POST request to `/oauth/token` with parameters:
Loading
@@ -112,7 +112,7 @@ You can do POST request to `/oauth/token` with parameters:
{ {
"grant_type" : "password", "grant_type" : "password",
"username" : "user@example.com", "username" : "user@example.com",
"password" : "sekret" "password" : "secret"
} }
``` ```
   
Loading
@@ -130,8 +130,8 @@ For testing you can use the oauth2 ruby gem:
Loading
@@ -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") 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 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment