Skip to content

Update middleware.py to use get_access_token_model instead of AccessToken #1380

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

Merged
merged 3 commits into from
May 6, 2024

Conversation

lazToum
Copy link
Contributor

@lazToum lazToum commented Dec 27, 2023

Update middleware.py

Fixes #1381

Description of the Change

Use get_access_token_model instead of AccessToken

Checklist

  • PR only contains one change (considered splitting up PR)
  • [NA] unit-test added
  • [NA] documentation updated
  • CHANGELOG.md updated (only for user relevant changes)
  • author name in AUTHORS

lazToum added 3 commits May 6, 2024 13:48
Use `get_access_token_model` instead of `AccessToken`
Copy link
Contributor

@n2ygk n2ygk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for this. Sorry for the long delay reviewing it.

@n2ygk n2ygk merged commit ea51411 into django-oauth:master May 6, 2024
@lazToum
Copy link
Contributor Author

lazToum commented May 6, 2024

Thanks! No worries

@n2ygk n2ygk changed the title Update middleware.py Update middleware.py to use get_access_token_model instead of AccessToken May 13, 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.

AttributeError in OAuth2ExtraTokenMiddleware middleware when a swapped AccessToken is used.
2 participants