1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-11-06 08:59:21 +02:00

Logs provider name on startup

If invalid provider is specified, stop and error out

fixes #895
This commit is contained in:
Arcadiy Ivanov
2020-11-11 00:53:56 -05:00
parent 6254ed24ea
commit 45ae87e4b7
3 changed files with 12 additions and 2 deletions

View File

@@ -46,7 +46,9 @@ func New(provider string, p *ProviderData) Provider {
return NewNextcloudProvider(p)
case "digitalocean":
return NewDigitalOceanProvider(p)
default:
case "google":
return NewGoogleProvider(p)
default:
return nil
}
}