flask-jwt icon indicating copy to clipboard operation
flask-jwt copied to clipboard

JWT (JSON Web Tokens) for Flask applications

Results 74 flask-jwt issues
Sort by recently updated
recently updated
newest added

To reproduce this bug you can use this authenticate function: ``` def authenticate(username, password): return {'id': '1', 'username': 'test', 'password': 'test'} ``` Trace: ``` File ".../lib/python3.5/site-packages/flask_jwt/__init__.py", line 53, in _default_jwt_payload_handler...

Simple solution for issue #99

The JWT_VERIFY_CLAIMS and JWT_REQUIRED_CLAIMS assume that item precense implies each item should be verified/required, and items that are excluded, should NOT be verified or required. Unfortunately, the PyJWT library will...

The example for the [header_handler](https://github.com/mattupstate/flask-jwt/blob/c27084114e258863b82753fc574a362cd6c62fcd/flask_jwt/__init__.py#L353-L357) is a copy-paste of pauload_handlers example:

Hey, I'm trying to overwrite the default payload_callback but I can't, what I'm doing wrong? ``` @jwt.jwt_payload_callback def make_payload(u): print "YEAH" print "YEAH" iat = datetime.utcnow() exp = iat +...

made changes to cater for when the instance of the return identity is a dictionary. the current code returns the following error ``` identity = getattr(identity, 'id') or identity['id'] AttributeError:...

[These functions](https://github.com/mattupstate/flask-jwt/blob/master/flask_jwt/__init__.py#L286-L306) should have different descriptions in their docstrings.

In _default_auth_request_handler() function, empty passwords are filtered out by the `criterion = [username, password, len(data) == 2]` list. This can be easily solved by changing the `password` criteria to `password...

What is the timezone / jwt expiration that is being passed into the token? I'm having trouble with validating the expiration date on a swift app end. The swift app...

In my app I want to be able to use just a custom login token (on app start) to authenticate and get a JWT token. Right now as far as...