1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

fix: log warning on an empty client secret

Because Miniflux runs as a confidential service, a missing client secret
is a mistake in configuration. An empty client secret appears to be
valid per RFC 6749 (and is in fact the default set by Miniflux!), so we
log a warning.
This commit is contained in:
Tali Auster 2025-03-27 18:04:33 -06:00 committed by Frédéric Guillot
parent cc5a8fa4b3
commit b3d385861f

View file

@ -39,5 +39,9 @@ func NewManager(ctx context.Context, clientID, clientSecret, redirectURL, oidcDi
} }
} }
if clientSecret == "" {
slog.Warn("OIDC client secret is empty or missing.")
}
return m return m
} }