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

fix: exceptional case with JwtAuthentication #375

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

robrap
Copy link
Contributor

@robrap robrap commented Aug 30, 2023

Description:

Fixes exceptional case where JwtAuthentication should not CSRF protect a request that has both a JWT token in the authorization header and a JWT cookie, since the cookie should be ignored.

Note: I had minor concerns that Mobile could have issues here, and I just didn't want to have that concern, so I took care of the exceptional case.

Merge checklist:

  • All reviewers approved
  • CI build is green
  • Version bump if needed
  • Changelog record added
  • Documentation updated (not only docstrings)
  • Commits are squashed

Post merge:

  • Create a tag
  • Check new version is pushed to PyPi after tag-triggered build is
    finished.

@robrap robrap requested a review from feanil August 30, 2023 22:10
Fixes exceptional case where JwtAuthentication should not CSRF
protect a request that has both a JWT token in the authorization
header and a JWT cookie, since the cookie should be ignored.
Updated one of the values of the custom attribute jwt_auth_result
from 'skipped' to 'n/a'.
@robrap robrap merged commit 0d72f53 into master Aug 31, 2023
7 checks passed
@robrap robrap deleted the robrap/adjust-cookie-logic branch August 31, 2023 19:30
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.

2 participants