Skip to content

Ordering of JWT_TOKEN_LOCATION #255

@stephendwolff

Description

@stephendwolff

The JWT_TOKEN_LOCATION is a flexible addition to getting JWTs to work in various scenarios, however i'm working with an iOS developer where we have an API connection (via the header tag), and we are also using cookies for an in-app browser connection.

Cookies are checked first - in _decode_jwt_from_request (https://github.com/vimalloc/flask-jwt-extended/blob/854bc2ed5dfa8a6e5ec6e7de25a2c1a5a18bff44/flask_jwt_extended/view_decorators.py#L247 - rather than respecting the order of the JWT_TOKEN_LOCATION list (or set).

If i work on a PR, is there anything i should be aware of? Is this a crazy idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions