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: add check for enforcing jwt and lms user email match #419

Merged
merged 5 commits into from
Jan 29, 2024

Conversation

syedsajjadkazmii
Copy link
Contributor

Description:

Unauthenticate in case of mismatch between JWT email and lms user email

JIRA:

VAN-1694

Copy link
Contributor

@robrap robrap left a comment

Choose a reason for hiding this comment

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

Looks good. Minor issue with the custom attribute. I know you plan to add tests. Thanks and good luck.

edx_rest_framework_extensions/auth/jwt/authentication.py Outdated Show resolved Hide resolved
edx_rest_framework_extensions/auth/jwt/authentication.py Outdated Show resolved Hide resolved
@syedsajjadkazmii syedsajjadkazmii force-pushed the sajjad/VAN-1694 branch 6 times, most recently from 29154d4 to c74c3e4 Compare January 5, 2024 08:29
Copy link
Contributor

@robrap robrap left a comment

Choose a reason for hiding this comment

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

Generally looks good. Thanks.

  1. I'm still reviewing tests.
  2. The changelog and version need to be updated.
  3. The base branch will be updated over the next couple of days. Sorry about that. :)

@syedsajjadkazmii
Copy link
Contributor Author

  1. The changelog and version need to be updated.

I will update the changelog and version once my branch is rebased on the master. If it's okay.

@robrap robrap force-pushed the robrap/remove-forgiven-jwt-toggle branch from c82ad02 to 7d931d2 Compare January 9, 2024 21:28
Copy link
Contributor

@robrap robrap left a comment

Choose a reason for hiding this comment

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

Thanks.

@syedsajjadkazmii syedsajjadkazmii force-pushed the sajjad/VAN-1694 branch 4 times, most recently from 19fc77c to c15bd24 Compare January 17, 2024 07:57
@syedsajjadkazmii
Copy link
Contributor Author

Hi @robrap,

Could you please have a final look at the PR if possible? Also, I was wondering when will your branch get merged into the master?

Base automatically changed from robrap/remove-forgiven-jwt-toggle to master January 25, 2024 15:42
Copy link
Contributor

@robrap robrap left a comment

Choose a reason for hiding this comment

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

Thanks for all the work.

  1. My change was merged, so you can rebase against master.
  2. I just looked at my final review comments and marked resolved. I did not re-review all the tests, etc.
  3. I give this a 👍, except it is difficult to review until you rebase. Feel free to have someone on your team do the final review after rebase (mostly to make sure the rebase looks good), or I can do that if you need me to.
  4. Remember to add CHANGELOG and version update for 10.1.0.

@syedsajjadkazmii syedsajjadkazmii force-pushed the sajjad/VAN-1694 branch 4 times, most recently from fe968a4 to 5709f13 Compare January 26, 2024 06:31
@syedsajjadkazmii
Copy link
Contributor Author

syedsajjadkazmii commented Jan 26, 2024

Thanks for all the work.

  1. My change was merged, so you can rebase against master.
  2. I just looked at my final review comments and marked resolved. I did not re-review all the tests, etc.
  3. I give this a 👍, except it is difficult to review until you rebase. Feel free to have someone on your team do the final review after rebase (mostly to make sure the rebase looks good), or I can do that if you need me to.
  4. Remember to add CHANGELOG and version update for 10.1.0.

Thank you for merging your changes. I have rebased the branch against the master and added CHANGELOG and version updates. If possible, could you please review now?

Copy link
Contributor

@robrap robrap left a comment

Choose a reason for hiding this comment

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

Minor request to update the changelog. Thank you.

CHANGELOG.rst Outdated Show resolved Hide resolved
robrap and others added 5 commits January 29, 2024 12:20
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.
@syedsajjadkazmii syedsajjadkazmii merged commit 97bc367 into master Jan 29, 2024
9 checks passed
@syedsajjadkazmii syedsajjadkazmii deleted the sajjad/VAN-1694 branch January 29, 2024 07:27
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