Questions tagged [flask-jwt-extended]

Flask-JWT-Extended is an opinionated Flask extension that adds support for using JSON Web Tokens (JWT) to protect views. It also many helpful (and optional) features built in to make working with JSON Web Tokens easier.

111 questions
0
votes
1 answer

Is there a grace period for blacklisting in flask-jwt-extended library?

I am refreshing access tokens for every requests and blacklisting the previous token. The problem is if there are multiple consecutive requests, the first token is invalidated by the next request. Is there a feature in flask-jwt-extended that…
alvirbismonte
  • 222
  • 1
  • 6
  • 21
0
votes
1 answer

gunicorn and flask-jwt-extended not getting current user

I've been building an app that uses flask, flask_jwt_extended and the decorator @jwt_required around protected functions that need an access token to access. From these endpoints, I can use flask_jwt_extended's get_current_user function to fetch the…
rma
  • 1,521
  • 1
  • 14
  • 40
0
votes
1 answer

How to set browser cookie from curl request

After lot of head banging and lot of waste of time, I have learned that if I use curl to test storing of token into cookie as shown on flask_jwt_extended website the cookie does not get set but if I use the RESTClient in the browser the cookie does…
Ciasto piekarz
  • 6,378
  • 11
  • 59
  • 149
0
votes
2 answers

flask-jwt-extended gives same token all the time for /login requests

jwt-flask-extended sends back same access token for any user always. I have integrated Flask with apache. Using Python 2.7.5, Operating System - Red Hat Enterprise Linux Server release 7.3 (Maipo). Find the code below. app = Flask(__name__) …
sandy r
  • 13
  • 1
  • 5
0
votes
1 answer

How to redirect to a JWT-protected page

After the user types in credentials in the login page, I save the JWT token I receive from my server in local storage. How do I use this token when redirecting to a protected page using window.location.replace(url). Or is there another method I…
Hackerman
  • 753
  • 1
  • 8
  • 20
0
votes
1 answer

generating token for flask-jwt giving incorrect method error

I used flask-jwt in my project and I have declared in controller.py: def _validate_user(email, password): """ validates user from db """ user = Users.get_user(email) if check_password_hash(user.password_hash, password): …
Ciasto piekarz
  • 6,378
  • 11
  • 59
  • 149
1 2 3 4 5 6 7
8