Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added tests to validate JWT Auth compatibility with OAuth2 #4
I've added the tests to validate the compatibility problem between JWT Auth and OAuth2, which I commented on the issue #3.
I have also used
@jpadilla I think the best and easier solution is to use another keyword, like "JWT", since in the draft (http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-15) is not specified which term to use, and maybe "Bearer" should only be used for OAuth.
Another choice, it's to validate the token format to distinguish from the OAuth2 one, but it should require changing the DRF OAuth2Authentication class as well.