# 4.3 Gitlab Auth

功能开发中。

我们开启 Gitlab OAuth2,需要首先在 Gitlab 系统里生成一个 Client ID 和 Secret Key。

# 4.3.1 创建一个 Gitlab OAuth keys

你需要创建一个Gitlab OAuth 应用 (opens new window)

# 4.3.2 在 Juno 里启用 Gitlab

启用 Gitlab 的授权

[auth.gitlab]
enabled = true
allow_sign_up = false
client_id = "GITLAB_APPLICATION_ID"
client_secret = "GITLAB_SECRET"
scopes = "api"
auth_url = "https://gitlab.com/oauth/authorize"
token_url = "https://gitlab.com/oauth/token"
api_url = "https://gitlab.com/api/v4"
allowed_groups =
1
2
3
4
5
6
7
8
9
10