Closed ryanolson closed 10 years ago
Sounds good, supersede #5.
@mattupstate thoughts?
For that matter, should the "undecipherable token" error produce a 401 as well?
I think an undecipherable token should be a 400. I'm not sure. It kind of hints at someone messing with the token or something going bad on the server side, perhaps a configuration change.
With an expired token, we know it was at one point a valid token, because it passed all the other criteria. With an undecipherable, I'm not sure we can say the same thing.
@mattupstate - do you think we can get this pull request merged and available via pypi?
An expired JWT should return a 401 so the end user/client knows that they should re-authenticate and try again.