Add Okta OAuth provider (#729)

This commit is contained in:
greenhandatsjtu
2022-05-01 18:31:42 +08:00
committed by GitHub
parent 912d9d0c01
commit fc0ca4cceb
8 changed files with 246 additions and 1 deletions

View File

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