Skip to content

Conversation

@lazToum
Copy link
Contributor

@lazToumlazToum 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

@n2ygkn2ygk 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.

@n2ygkn2ygk merged commit ea51411 into django-oauth:masterMay 6, 2024
@lazToum
Copy link
ContributorAuthor

Thanks! No worries

@n2ygkn2ygk changed the title Update middleware.pyUpdate middleware.py to use get_access_token_model instead of AccessTokenMay 13, 2024
Sign up for freeto 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

@lazToum@n2ygk