mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Add QqIdProvider.
This commit is contained in:
@ -25,11 +25,13 @@ type IdProvider interface {
|
||||
GetUserInfo(httpClient *http.Client, token *oauth2.Token) (string, string, string, error)
|
||||
}
|
||||
|
||||
func GetIdProvider(providerType string) IdProvider {
|
||||
func GetIdProvider(providerType string, clientId string) IdProvider {
|
||||
if providerType == "github" {
|
||||
return &GithubIdProvider{}
|
||||
} else if providerType == "google" {
|
||||
return &GoogleIdProvider{}
|
||||
} else if providerType == "qq" {
|
||||
return &QqIdProvider{ClientId: clientId}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user