Closed chromakode closed 2 years ago
@chromakode some test cases are required to update.
Tests updated!
@chromakode hi, there are still test cases failed.
My apologies. 😣 I've fixed the tests and verified locally that the tests are passing:
I've also added one additional case which should return "invalid_grant": the missing user case when authenticate_user
fails.
Thanks, I've merged it.
Awesome, thank you!
Currently, when validating params of
POST /token
, if thecode
orredirect_uri
is invalid authlib returns an "invalid_request" error type.RFC 6749 specifies that the
error
value will beinvalid_grant
in these cases:What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
Clients which depend on the current behavior of
error
could potentially be impacted by this change.