Update oauth2 middleware#587
Update oauth2 middleware#587etehtsea wants to merge 3 commits intoruby-grape:masterfrom SPBTV:fix-expired-token
Conversation
There was a problem hiding this comment.
could you clarify why you invalid_token used here?
in rfc http://tools.ietf.org/html/rfc6749 possible response is invalid_grant
There was a problem hiding this comment.
That was typo. Fixed, thanks.
There was a problem hiding this comment.
@dblock @dm1try according to http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-23#section-3.1 error should be invalid_token. Does anybody knows how it should look like?
There was a problem hiding this comment.
@etehtsea , sorry it's my fault..:pensive: rfc you provided seems more valid for our case. I used rfc link from oauth2 main page and just fluently search for differences but seems we should rely on this document that describes "Bearer Token Usage".
There was a problem hiding this comment.
tbh i don't know what the 'right' thing to do here, oauth2 spec is always in flux. It would be great if you guys could figure it out and PR the "right thing to do".
In latest oauth2 spec versions oauth_token was replaced with access_token
|
It would be great to have a clearer CHANGELOG, "latest" spec will become not so latest soon :) Maybe a spec version or a link or something like that? |
|
@dblock added spec version. |
|
Thanks, merging. |
|
Merged via 01f2590. |
No description provided.