mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-25 20:49:30 +02:00
default err code
This commit is contained in:
parent
b9b1754fcd
commit
d163af4d15
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ func (srv *Handler) Authorize(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
if err := oauth21.ValidateAuthorizationRequest(client, v); err != nil {
|
if err := oauth21.ValidateAuthorizationRequest(client, v); err != nil {
|
||||||
log.Ctx(ctx).Error().Err(err).Msg("failed to validate authorization request")
|
log.Ctx(ctx).Error().Err(err).Msg("failed to validate authorization request")
|
||||||
var ve oauth21.Error
|
ve := oauth21.Error{Code: oauth21.InvalidRequest}
|
||||||
_ = errors.As(err, &ve)
|
_ = errors.As(err, &ve)
|
||||||
oauth21.ErrorResponse(w, http.StatusBadRequest, ve.Code)
|
oauth21.ErrorResponse(w, http.StatusBadRequest, ve.Code)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue