jwt decorator
See original GitHub issueHi, I found an issue with jwt_required decorator, I don’t understand why works when I used like:
@custom_api.route('/resellers/<token>/registrations', methods=['GET'])
@jwt_required
def get_resellers(token):
...
but NOT when:
I’m using https://flask-restless.readthedocs.io/en/stable/ where I can use methods as preprocessor
@classmethod
@jwt_required
def get_many_preprocessor(cls, search_params=None, **kw):
print "Here not work"
This worked me with flask-jwt, what could be?
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (8 by maintainers)
Top Results From Across the Web
Custom Decorators — flask-jwt-extended 4.4.4 documentation
You can create your own decorators that extend the functionality of the decorators provided by this extension. For example, you may want to...
Read more >Part 4: JWT Authentication, Decorators and Blacklisting Tokens
route decorator binds this resource to the /api/v1/auth/login URL route. Line 37: The HTTP status codes for successfully registering a new user and...
Read more >Using authentication decorators in Flask - CircleCI
In this tutorial, we have learned how to create custom authentication decorators and use them in our API to receive and decode JWT...
Read more >Decorators — Django GraphQL JWT 0.3.4 documentation
Decorator to check whether a user has a particular permission. ... The decorator may also take an iterable of permissions, in which case...
Read more >Auth JWT in decorator in NESTJS - Stack Overflow
You can create a custom decorator in that case. //user.decorator.ts import { createParamDecorator, ExecutionContext } from '@nestjs/common'; ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Awesome! Very glad to hear it 😃
I’ll leave this issue open until I get these fixes pushed to pypi/pip.
Cheers.
Assuming you are using a virtualenv, you can run: