flask-jwt-extended Questions

3

Solved

I'm having issues trying to capture a malformed JWT error in my app. I'm using flask_jwt_extended and when I send a manually created JWT. I get this error message: Error on request: Traceback (mo...
Rame asked 30/4, 2019 at 9:30

4

Solved

I got this error in Flask Application: curl http://0.0.0.0:8080/ -H "Authorization: Bearer TGazPL9rf3aIftplCYDTGDc8cbTd" { "msg": "Not enough segments" } Here a sample: from flask import Flask...
Akkerman asked 26/4, 2020 at 5:5

3

Solved

I am trying to refresh a JWT token from the code here. The issue is with how to get the new token with the refresh. This works: curl http://127.0.0.1:5000/protected {"msg":"Missing Authorization ...
Fickle asked 10/3, 2019 at 16:32

2

Solved

I just learned about flask and JWT like a week ago so I could really use some help. Can someone explain the difference between flask-jwt and flask-jwt-extended?
Sternutation asked 12/3, 2019 at 10:3

2

Solved

I'm building a REST API using flask. I'm using postman for testing a route that creates a new item in my database, but only if the user is logged in. The routes for registering and login are workin...
Aldercy asked 14/2, 2021 at 21:5

2

Scenario A logged in user will have a token expiry of 24 hours. Within that period, all request with @jwt_required decorator will have the current access token's expiry extended by another 24 hour...
Mumps asked 13/9, 2017 at 12:2

2

Solved

Again fighting trying to make my first flask application, this time, (after I created every I need and all works smoothly) I'm trying to protect some endpoints with flask_jwt_extended, but I can't ...
Intracellular asked 22/3, 2019 at 9:22

5

Solved

This is the function I wish to test @jwt_required def get_all_projects(self): # implementation not included here I call the function from a pytest class def test_get_all_projects(db_session):...
Inoculum asked 20/10, 2017 at 10:2

1

Solved

I am new to python/flask and I am working on one to many relationships. I tried some solutions but didn't work. My problem here is in the "/add_about" route I want to get the user_id that created t...

1

I have a plotly dash app which I would like to hold behind a route that is protected with a JWT. My end goal is to contain this in an iframe on a separate route, but I only want the user to be able...
Soho asked 23/8, 2019 at 15:55

1

Solved

I have a SPA app that contains an form with an upload file field. I have a rest API whose endpoints are protected via flask-extended-jwt JWT. To authenticate the REST endpoints I use @jwt_required....
Eliason asked 20/8, 2018 at 14:6

1

Solved

I have a interesting question. I use python with Flask for a authentication service, which generates JWT Tokens with flask_jwt_extended. Thats how I generate the tokens in Python, with Flask JWT Ex...
Knife asked 23/3, 2018 at 21:35

2

Solved

I want to add additional verification to the token when @jwt_required is called. I want to verify one of the claims. Is there away I can do this with JWTManager? Currently my code just calls: jwt...
Greisen asked 6/7, 2017 at 17:3
1

© 2022 - 2024 — McMap. All rights reserved.