Commit e10b4d93 authored by Suzanne Selhorn's avatar Suzanne Selhorn

Merge branch 'hickford-master-patch-26753' into 'master'

Document Git-over-HTTPS with OAuth access token

See merge request gitlab-org/gitlab!77464
parents e7bd4077 11503259
...@@ -373,6 +373,12 @@ or you can put the token to the Authorization header: ...@@ -373,6 +373,12 @@ or you can put the token to the Authorization header:
curl --header "Authorization: Bearer OAUTH-TOKEN" "https://gitlab.example.com/api/v4/user" curl --header "Authorization: Bearer OAUTH-TOKEN" "https://gitlab.example.com/api/v4/user"
``` ```
## Access Git over HTTPS with `access token`
A token with [scope](../integration/oauth_provider.md#authorized-applications)
`read_repository` or `write_repository` can access Git over HTTPS. Use the token as the password.
The username must be `oauth2`, not your username.
## Retrieve the token information ## Retrieve the token information
To verify the details of a token, use the `token/info` endpoint provided by the To verify the details of a token, use the `token/info` endpoint provided by the
......
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