Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

InvalidAudienceError results in 500 Error Rather than 401/403 #100

Closed
cancan101 opened this issue Apr 15, 2015 · 2 comments
Closed

InvalidAudienceError results in 500 Error Rather than 401/403 #100

cancan101 opened this issue Apr 15, 2015 · 2 comments

Comments

@cancan101
Copy link
Contributor

Right now just ExpiredSignature and DecodeError are caught. (See here) but InvalidAudienceError extends InvalidTokenError.

InvalidAudienceError should be caught and then either return None or raise a 401 or 403.

@jpadilla
Copy link
Owner

@cancan101 decided for now to catch InvalidTokenError and raise AuthenticationFailed.

@jpadilla
Copy link
Owner

Fixed in v1.5.0

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

No branches or pull requests

2 participants