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

Add equivalent of verify_jwt_in_request() from flask-jwt-extended library

Open dannymeloy opened this issue 7 years ago • 1 comments

Hi, I'm using the *-simple library because I needed more control over the claims that are in the JWT, but I'm struggling to write decorators that filter by permissions (e.g. role-required decorator) due to a lack of "Verify Tokens in Request" methods. I was wondering if a non decorated version of jwt_required could be added

dannymeloy avatar Jul 06 '18 15:07 dannymeloy

Sure thing. It should not be hard to break those into a help function and export them like what was done with the extended version of the library. If you want to take a stab at that and submit a pull request I would be happy to work with you to get it merged and a new release cut. Otherwise I can see about adding it in the near future when I have some free time on my hands :+1:

vimalloc avatar Jul 06 '18 15:07 vimalloc