feat: add facebook provider (#79)

* feat: add facebook provider

Signed-off-by: WindSpirit <simon343riley@gmail.com>

* fix: set fb id to username and reformat

Signed-off-by: WindSpirit <simon343riley@gmail.com>
This commit is contained in:
WindSpiritSR
2021-06-06 10:06:54 +08:00
committed by GitHub
parent eb658ad8ee
commit 6142ca52ca
5 changed files with 211 additions and 4 deletions

View File

@ -43,6 +43,8 @@ func GetIdProvider(providerType string, clientId string, clientSecret string, re
return NewQqIdProvider(clientId, clientSecret, redirectUrl)
} else if providerType == "WeChat" {
return NewWeChatIdProvider(clientId, clientSecret, redirectUrl)
} else if providerType == "Facebook" {
return NewFacebookIdProvider(clientId, clientSecret, redirectUrl)
}
return nil