diff --git a/internal/oidc/auth/auth_handler.go b/internal/oidc/auth/auth_handler.go index 7b94694f..10e486bb 100644 --- a/internal/oidc/auth/auth_handler.go +++ b/internal/oidc/auth/auth_handler.go @@ -63,7 +63,7 @@ func NewHandler( oidcUpstream, ldapUpstream, err := chooseUpstreamIDP(idpNameQueryParamValue, idpFinder) if err != nil { plog.WarningErr("authorize upstream config", err) - return err + return httperr.Wrap(http.StatusUnprocessableEntity, err.Error(), err) } if oidcUpstream != nil {