Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use class property to set token classes instead of hardcoded taking it from global settings #818

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhindery
Copy link

I'm subclassing JWTAuthentication in order to work with custom token classes. This currently requires to overwrite and duplicate the entire get_validated_token() method because it hardcodes there the list of access tokens it checks. I don't want to change the implementation of the method but just use my own list of tokens. So I've moved this list to be an attribute of the class, so subclassing becomes easier without the need to override the method.

@mhindery mhindery changed the title Use class property to set tokens Use class property to set token classes instead of hardcoded taking it from global settings Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant