Add docs for gitlab sso, add support for self-hosted gitlab instance sso

This commit is contained in:
Tuan Dang
2023-10-04 20:48:42 +01:00
parent 9e2d6daeba
commit e21daf6771
13 changed files with 52 additions and 17 deletions
-11
View File
@@ -33,17 +33,6 @@ router.put(
requireAuth({
acceptedAuthModes: [AuthMode.JWT, AuthMode.API_KEY],
}),
body("authMethods").exists().isArray({
min: 1,
}).custom((authMethods: AuthMethod[]) => {
return authMethods.every(provider => [
AuthMethod.EMAIL,
AuthMethod.GOOGLE,
AuthMethod.GITHUB,
AuthMethod.GITLAB
].includes(provider))
}),
validateRequest,
usersController.updateAuthMethods,
);