refactor: use fatal log message on oidc init error (#1973)

Instead of using panic() when an unknown error was detected on OP initialization, use logger.Fatalf. This provides a more useful output to the user.
This commit is contained in:
James Elliott 2021-05-05 10:50:24 +10:00 committed by GitHub
parent 3c4b320096
commit a984e2700b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ func startServer() {
oidcProvider, err := oidc.NewOpenIDConnectProvider(config.IdentityProviders.OIDC)
if err != nil {
panic(err)
logger.Fatalf("Error initializing OpenID Connect Provider: %+v", err)
}
providers := middlewares.Providers{