mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-10-23 19:14:09 +02: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()
|
||||
if !status {
|
||||
if oauthConfig == nil {
|
||||
w.WriteHeader(500)
|
||||
return errors.New("failed to fetch OIDC configuration")
|
||||
}
|
||||
|
Reference in New Issue
Block a user