mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-10-26 19:44:04 +01:00
Update src/mod/auth/sso/oauth2/oauth2.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -283,7 +283,7 @@ func (ar *OAuth2Router) HandleOAuth2Auth(w http.ResponseWriter, r *http.Request)
|
|||||||
})
|
})
|
||||||
|
|
||||||
oauthConfig := oauthConfigCache.Value()
|
oauthConfig := oauthConfigCache.Value()
|
||||||
if !status {
|
if oauthConfig == nil {
|
||||||
w.WriteHeader(500)
|
w.WriteHeader(500)
|
||||||
return errors.New("failed to fetch OIDC configuration")
|
return errors.New("failed to fetch OIDC configuration")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user