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:
parent
cc5a8fa4b3
commit
b3d385861f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue