docs: Update Docs: Backends “gitlab-backend” (#3906)
This commit is contained in:
parent
a50edc7055
commit
b4c47caf59
@ -1,15 +1,16 @@
|
|||||||
---
|
---
|
||||||
title: GitLab
|
title: GitLab
|
||||||
weight: 20
|
|
||||||
group: backends
|
group: backends
|
||||||
|
weight: 20
|
||||||
---
|
---
|
||||||
|
|
||||||
For repositories stored on GitLab, the `gitlab` backend allows CMS users to log in directly with their GitLab account. Note that all users must have push access to your content repository for this to work.
|
For repositories stored on GitLab, the `gitlab` backend allows CMS users to log in directly with their GitLab account. Note that all users must have push access to your content repository for this to work.
|
||||||
|
|
||||||
|
**Note:** GitLab default branch is protected by default, thus typically requires `maintainer` permissions in order for users to have push access.
|
||||||
|
|
||||||
The GitLab API allows for two types of OAuth2 flows:
|
The GitLab API allows for two types of OAuth2 flows:
|
||||||
|
|
||||||
* [Web Application Flow](https://docs.gitlab.com/ce/api/oauth2.html#web-application-flow), which works much like the GitHub OAuth flow described above.
|
* [Web Application Flow](https://docs.gitlab.com/ce/api/oauth2.html#web-application-flow), which works much like the GitHub OAuth flow described above.
|
||||||
* [Implicit Grant](https://docs.gitlab.com/ce/api/oauth2.html#implicit-grant-flow), which operates _without_ the need for an authentication server.
|
* [Implicit Grant](https://docs.gitlab.com/ce/api/oauth2.html#implicit-grant-flow), which operates *without* the need for an authentication server.
|
||||||
|
|
||||||
## Web Application Flow with Netlify
|
## Web Application Flow with Netlify
|
||||||
|
|
||||||
@ -55,4 +56,4 @@ With GitLab's Implicit Grant, users can authenticate with GitLab directly from t
|
|||||||
auth_endpoint: oauth/authorize
|
auth_endpoint: oauth/authorize
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:** In both cases, GitLab also provides you with a client secret. You should _never_ store this in your repo or reveal it in the client.
|
**Note:** In both cases, GitLab also provides you with a client secret. You should *never* store this in your repo or reveal it in the client.
|
Loading…
x
Reference in New Issue
Block a user