Skip to content

Commit

Permalink
fix: improve goth code (casdoor#2693)
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitrii Aleksandrov <[email protected]>
  • Loading branch information
Insei authored Feb 12, 2024
1 parent 6e28043 commit 7e3c1a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions idp/goth.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ import (
"github.com/markbates/goth/providers/twitterv2"
"github.com/markbates/goth/providers/typetalk"
"github.com/markbates/goth/providers/uber"
"github.com/markbates/goth/providers/vk"
"github.com/markbates/goth/providers/wepay"
"github.com/markbates/goth/providers/xero"
"github.com/markbates/goth/providers/yahoo"
Expand Down Expand Up @@ -371,6 +372,11 @@ func NewGothIdProvider(providerType string, clientId string, clientSecret string
Provider: uber.New(clientId, clientSecret, redirectUrl),
Session: &uber.Session{},
}
case "VK":
idp = GothIdProvider{
Provider: vk.New(clientId, clientSecret, redirectUrl),
Session: &vk.Session{},
}
case "Wepay":
idp = GothIdProvider{
Provider: wepay.New(clientId, clientSecret, redirectUrl),
Expand Down

0 comments on commit 7e3c1a6

Please sign in to comment.