feat: add gitlab provider (#273)

Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
sh1luo
2021-08-19 21:03:57 +08:00
committed by Yang Luo
parent e1182bb635
commit 75e917a070
8 changed files with 279 additions and 2 deletions

View File

@ -57,6 +57,8 @@ func GetIdProvider(providerType string, clientId string, clientSecret string, re
return NewWeComIdProvider(clientId, clientSecret, redirectUrl)
} else if providerType == "Lark" {
return NewLarkIdProvider(clientId, clientSecret, redirectUrl)
} else if providerType == "GitLab" {
return NewGitlabIdProvider(clientId, clientSecret, redirectUrl)
}
return nil