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

feat!: make forgiving JWTs the default #404

Merged
merged 3 commits into from Jan 25, 2024

Conversation

robrap
Copy link
Contributor

@robrap robrap commented Nov 8, 2023

Description:

This is the final step (in this library) of the rollout of forgiving JWTs as a replacement for the USE-JWT-COOKIE header.

BREAKING CHANGE: Removed ENABLE_FORGIVING_JWT_COOKIES toggle. It is now permanently enabled.

  • The header USE-JWT-COOKIE was removed because it has been fully replaced by forgiving JWTs.
  • Removed temporary rollout custom attributes: use_jwt_cookie_requested, jwt_auth_request_user_not_found, and skip_jwt_vs_session_check.

See ADR 0002-remove-use-jwt-cookie-header.rst for details.

Reviewers:

  • tag reviewer

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.
  • Delete working branch (if not needed anymore)

Copy link
Contributor

@feanil feanil left a comment

Choose a reason for hiding this comment

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

It's a thing of beauty. 👨🏾‍🍳

I had one small suggestion for the ADR but I don't consider it blocking.

docs/decisions/0002-remove-use-jwt-cookie-header.rst Outdated Show resolved Hide resolved
@robrap robrap force-pushed the robrap/remove-forgiven-jwt-toggle branch from 26cac08 to 27f789a Compare November 27, 2023 20:34
@robrap robrap force-pushed the robrap/remove-forgiven-jwt-toggle branch from 044ea74 to 7014a0d Compare December 18, 2023 20:19
@robrap robrap force-pushed the robrap/remove-forgiven-jwt-toggle branch from 8fc82f3 to c82ad02 Compare December 19, 2023 17:28
This is the final step (in this library) of the rollout of
forgiving JWTs as a replacement for the USE-JWT-COOKIE header.

**BREAKING CHANGE:** Removed ENABLE_FORGIVING_JWT_COOKIES toggle.
It is now permanently enabled.
- The header USE-JWT-COOKIE was removed because it has been fully
  replaced by forgiving JWTs.
- Removed temporary rollout custom attributes:
  use_jwt_cookie_requested, jwt_auth_request_user_not_found, and
  skip_jwt_vs_session_check.

See ADR 0002-remove-use-jwt-cookie-header.rst for details.
@robrap robrap force-pushed the robrap/remove-forgiven-jwt-toggle branch from c82ad02 to 7d931d2 Compare January 9, 2024 21:28
@robrap
Copy link
Contributor Author

robrap commented Jan 9, 2024

@feanil: [request] This is ready for review again. I squashed the earlier commits and rebased again. Reviewing by commit just doesn't work. I did find that reviewing without whitespace makes it pretty simple to see changes: https://github.com/openedx/edx-drf-extensions/pull/404/files?diff=unified&w=1.

@robrap robrap merged commit 9bd04b3 into master Jan 25, 2024
9 checks passed
@robrap robrap deleted the robrap/remove-forgiven-jwt-toggle branch January 25, 2024 15:42
@robrap robrap mentioned this pull request Jan 25, 2024
4 tasks
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.

None yet

2 participants