Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
11503259
Commit
11503259
authored
Jan 05, 2022
by
M Hickford
Committed by
Suzanne Selhorn
Jan 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document Git-over-HTTPS with OAuth access token
parent
e7bd4077
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
doc/api/oauth2.md
doc/api/oauth2.md
+6
-0
No files found.
doc/api/oauth2.md
View file @
11503259
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment