mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-28 18:06:34 +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 {
|
||||
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)
|
||||
oauth21.ErrorResponse(w, http.StatusBadRequest, ve.Code)
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue