mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-22 07:53:38 +01:00
fix(oidc): Default isAuthenticated to true, not false
This commit is contained in:
parent
0e022d04b1
commit
10949b11f4
@ -14,7 +14,7 @@ type ConfigHandler struct {
|
|||||||
|
|
||||||
func (handler ConfigHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
func (handler ConfigHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
hasOIDC := false
|
hasOIDC := false
|
||||||
isAuthenticated := false // Default to true if no security config is set
|
isAuthenticated := true // Default to true if no security config is set
|
||||||
if handler.securityConfig != nil {
|
if handler.securityConfig != nil {
|
||||||
hasOIDC = handler.securityConfig.OIDC != nil
|
hasOIDC = handler.securityConfig.OIDC != nil
|
||||||
isAuthenticated = handler.securityConfig.IsAuthenticated(r)
|
isAuthenticated = handler.securityConfig.IsAuthenticated(r)
|
||||||
|
Loading…
Reference in New Issue
Block a user