From f3143e52b34e82d1e12e8f7c920e649697fd8868 Mon Sep 17 00:00:00 2001 From: kjagosz <63209438+kjagosz@users.noreply.github.com> Date: Tue, 21 Oct 2025 11:59:03 +0200 Subject: [PATCH] Update src/mod/auth/sso/oauth2/oauth2.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/mod/auth/sso/oauth2/oauth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/auth/sso/oauth2/oauth2.go b/src/mod/auth/sso/oauth2/oauth2.go index c267714..8ec9e4c 100644 --- a/src/mod/auth/sso/oauth2/oauth2.go +++ b/src/mod/auth/sso/oauth2/oauth2.go @@ -283,7 +283,7 @@ func (ar *OAuth2Router) HandleOAuth2Auth(w http.ResponseWriter, r *http.Request) }) oauthConfig := oauthConfigCache.Value() - if !status { + if oauthConfig == nil { w.WriteHeader(500) return errors.New("failed to fetch OIDC configuration") }