Commit 11503259 authored by M Hickford's avatar M Hickford Committed by Suzanne Selhorn

Document Git-over-HTTPS with OAuth access token

parent e7bd4077
......@@ -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"
```
## 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
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