Skip to content

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