feat: add Douyin OAuth provider (#753)

This commit is contained in:
greenhandatsjtu
2022-05-15 20:59:21 +08:00
committed by GitHub
parent e5b71a08ae
commit 98f77960de
7 changed files with 243 additions and 0 deletions

View File

@ -86,6 +86,8 @@ func GetIdProvider(typ string, subType string, clientId string, clientSecret str
return NewCasdoorIdProvider(clientId, clientSecret, redirectUrl, hostUrl)
} else if typ == "Okta" {
return NewOktaIdProvider(clientId, clientSecret, redirectUrl, hostUrl)
} else if typ == "Douyin" {
return NewDouyinIdProvider(clientId, clientSecret, redirectUrl)
} else if isGothSupport(typ) {
return NewGothIdProvider(typ, clientId, clientSecret, redirectUrl)
} else if typ == "Bilibili" {