mirror of
https://github.com/usememos/memos.git
synced 2025-10-13 07:49:00 +08:00
feat: add GitLab OAuth2 template (#1302)
This commit is contained in:
parent
7c5fae68fe
commit
008d6a0c81
1 changed files with 21 additions and 0 deletions
|
@ -34,6 +34,27 @@ const templateList: IdentityProvider[] = [
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
id: UNKNOWN_ID,
|
||||
name: "GitLab",
|
||||
type: "OAUTH2",
|
||||
identifierFilter: "",
|
||||
config: {
|
||||
oauth2Config: {
|
||||
clientId: "",
|
||||
clientSecret: "",
|
||||
authUrl: "https://gitlab.com/oauth/authorize",
|
||||
tokenUrl: "https://gitlab.com/oauth/token",
|
||||
userInfoUrl: "https://gitlab.com/oauth/userinfo",
|
||||
scopes: ["openid"],
|
||||
fieldMapping: {
|
||||
identifier: "name",
|
||||
displayName: "name",
|
||||
email: "email",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
id: UNKNOWN_ID,
|
||||
name: "Google",
|
||||
|
|
Loading…
Add table
Reference in a new issue