feat: add Line support as OAuth 3rd-party login (#1413)

This commit is contained in:
WangGuan
2022-12-21 02:25:58 +08:00
committed by GitHub
parent f075d0fd74
commit ae130788ec
7 changed files with 45 additions and 2 deletions

View File

@ -170,7 +170,7 @@ func (c *ApiController) GetApplicationLogin() {
}
func setHttpClient(idProvider idp.IdProvider, providerType string) {
if providerType == "GitHub" || providerType == "Google" || providerType == "Facebook" || providerType == "LinkedIn" || providerType == "Steam" {
if providerType == "GitHub" || providerType == "Google" || providerType == "Facebook" || providerType == "LinkedIn" || providerType == "Steam" || providerType == "Line" {
idProvider.SetHttpClient(proxy.ProxyHttpClient)
} else {
idProvider.SetHttpClient(proxy.DefaultHttpClient)