diff --git a/internal/bootstrap/app_bootstrap.go b/internal/bootstrap/app_bootstrap.go index eef2e5e7..92b049ef 100644 --- a/internal/bootstrap/app_bootstrap.go +++ b/internal/bootstrap/app_bootstrap.go @@ -97,7 +97,12 @@ func (app *BootstrapApp) Setup() error { return fmt.Errorf("failed to load users: %w", err) } - app.runtime.LocalUsers = *users + if users != nil { + app.runtime.LocalUsers = *users + } else { + log.App.Debug().Msg("No local users found, local authentication will not be available") + app.runtime.LocalUsers = []model.LocalUser{} + } // load oauth whitelist oauthWhitelist, err := utils.GetStringList(app.config.OAuth.Whitelist, app.config.OAuth.WhitelistFile)