Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oauth:error event customization #31

Closed
LennyLip opened this issue Apr 1, 2015 · 2 comments
Closed

oauth:error event customization #31

LennyLip opened this issue Apr 1, 2015 · 2 comments

Comments

@LennyLip
Copy link

LennyLip commented Apr 1, 2015

oauth:error now is

{ status: 400, data: { error: 'invalid_grant' }

can i customize it?

i'm get error from my pytonhlib https://github.com/idan/oauthlib as:

{"error": "invalid_grant", "error_description": "Invalid credentials given."}

and http status code

Status Code:401 UNAUTHORIZED

@LennyLip
Copy link
Author

LennyLip commented Apr 1, 2015

hm, via https://tools.ietf.org/html/rfc6749#section-5.2 it seems problem in my server lib. Problem in 401 status code only (must (or not?) be 400).

oauthlib/oauthlib#264

@LennyLip LennyLip closed this as completed Apr 1, 2015
@mfagadar
Copy link

mfagadar commented Apr 2, 2015

@LennyLip I had a similar question reported here: #32 (comment). The solution was to handle the custom errors via an interceptor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants