Update src/mod/auth/sso/oauth2/oauth2.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
kjagosz
2025-10-21 11:59:03 +02:00
committed by GitHub
parent 0f295185f1
commit f3143e52b3

View File

@@ -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")
}