Unverified Commit 008d6a0c authored by kimw's avatar kimw Committed by GitHub

feat: add GitLab OAuth2 template (#1302)

parent 7c5fae68
...@@ -34,6 +34,27 @@ const templateList: IdentityProvider[] = [ ...@@ -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, id: UNKNOWN_ID,
name: "Google", name: "Google",
......
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