-
-
Notifications
You must be signed in to change notification settings - Fork 247
Closed
Description
I'm migrating from flask-jwt and make extensive use of decorated required and optional routes. My tests also have extensive coverage for invalid JWT cases. I've confirmed that invalid JWTs are handled correctly for jwt_required() routes, but not fully for jwt_required(optional=True) routes. Note that I use "JWT" as my prefix instead of "Bearer". I've also seen that flask-jwt-extended test cases do not cover these types of cases for optional routes.
Specifically these routes are allowed access for these invalid tokens. It is obviously important that any type of error for a submitted token (in any location) is rejected even when it is optional.
- "JWT "
- "JWT xxxx"
- "JWT xxxx xxxx"
- "JXX"
Metadata
Metadata
Assignees
Labels
No labels