-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bump djoser to 2.3.1 #175
base: main
Are you sure you want to change the base?
Bump djoser to 2.3.1 #175
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Tested in xPRO
@marslanabdulrauf Could you add testing instructions + a little bit of explanation as to why we are creating this PR for future references? |
Test Steps
Reviewed the test suite and ensured all tests passed successfully. Testing with Local Changes in
Run the xpro test suite and ensured all tests passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it by directly updating the package to v2.3.1 in xPRO |
Hi @arslanashraf7 ,
|
@marslanabdulrauf I have never directly worked with this authentication package so I don't know the exact details of why The main thing is to identify whether the authentication package really needs to depend on python-saml or not. As per your finding @rhysyngsun or @blarghmatey might be able to weigh in more on this. |
|
I have reviewed the codebase and confirmed that while we have a touchstone.py settings file and a saml.py view file, they are not being used in xPro or MITx Online. This likely explains why the last published version of the project, which excludes the python3-saml package, works without any issues. I also verified this in ol-infrastructure (search result), which confirms that SOCIAL_AUTH_SAML_SP_PRIVATE_KEY is not being utilized in these environments. Given this, I recommend safely removing python3-saml from the dependencies. @collinpreston @rhysyngsun Could you confirm if I might be missing anything here? Thanks |
@marslanabdulrauf go for it |
@marslanabdulrauf one of the checks are failing because of saml |
4159825
to
a84a9dc
Compare
a84a9dc
to
da73e78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now works fine for me on MIT xPRO.
However, I was looking at the usages of this package and I found at least 3 other applications using this:
- MITx Online (This is similar to xPRO so this should work too)
- Bootcamps (Also the registration is similar to xPRO and should work there too)
- OCW Studio (I am not sure about how this is being used here)
I would hold the merge until I get the approval from someone in OCW team because the changes in this package here might impact them as well. So, Could you please ask check with someone in OCW before merging this. @umar8hassan @ibrahimjaved12 Could you help ?
Thank you @arslanashraf7 for highlighting the OCW Studio, I completely missed that. I will check with OCW Team for confirmation before merging this. |
I had a discussion over a huddle with @umar8hassan from the OCW team, and here are our findings:
Given this, removing However, since this PR also removes Touchstone-related settings and the I’m attaching the latest package build for review: mitol_django_authentication-2025.1.9.tar.gz. Can someone from OCW verify this? Cc @pdpinch |
@umar8hassan can you take a look at this? |
What are the relevant tickets?
https://github.com/mitodl/mitxpro/security/dependabot/204
Description (What does it do?)
This PR upgrades djoser to 2.3.1