nxtbgthng / OAuth2Client

Client library for OAuth2 (currently built against draft 10 of the OAuth2 spec)
855 stars 217 forks source link

Fix non-standard invalid_token header detection #192

Closed zittix closed 9 years ago

zittix commented 9 years ago

This PR fixes a problem where the header of Www-authenticate was checked with a non-standard keyword for invalid token. Per the RFC, the standard keyword invalid_grant specify an invalid or expired token.

Moreover it has been added a check to try to refresh the token if possible.

zittix commented 9 years ago

I fixed it with this latest commit 12241ed

toto commented 9 years ago

Thank you :-)