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 <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2022-09-26 09:52:32 +02:00
parent 8dcc82ceb3
commit dbe58e53e4
No known key found for this signature in database

2
app.go
View File

@ -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")
}
}