Update auth_handler.go to return 422 error when upstream IdP not found
Co-authored-by: Ryan Richard <richardry@vmware.com>
This commit is contained in:
parent
6ef9cf273e
commit
770f8af62b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user