From dbe58e53e4af65a23c5f54b3f9de37957f4ba5ee Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Mon, 26 Sep 2022 09:52:32 +0200 Subject: [PATCH] Allow headscale to start if oidc setup fails. This commit makes headscale fall back to CLI authentication if oidc fails to initialised and posts a warning to users. Signed-off-by: Kristoffer Dalby --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index 59101be3..3a4e9a25 100644 --- a/app.go +++ b/app.go @@ -193,7 +193,7 @@ func NewHeadscale(cfg *Config) (*Headscale, error) { if cfg.OIDC.Issuer != "" { err = app.initOIDC() if err != nil { - return nil, err + log.Warn().Err(err).Msg("failed to set up OIDC provider, falling back to CLI based authentication") } }