-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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: allow oauth configuration per site and backend #32656
feat: allow oauth configuration per site and backend #32656
Conversation
Thanks for the pull request, @navinkarkera! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
04197d4
to
a473c5d
Compare
a473c5d
to
8d29434
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.
Hi @navinkarkera - is this ready for review? |
* feat: allow oauth configuration per site and backend Allows admins to configure same oauth backend for multiple sites (cherry picked from commit efd2ef9) * fix: skip pipeline if oauth provider for site is not setup (cherry picked from commit 29f8494) * refactor: remove site_id from provider_id (cherry picked from commit 236f7a5) --------- Cherry pick of #542 Upstream PR openedx#32656 [BB-7589](https://tasks.opencraft.com/browse/BB-7589) --------- Co-authored-by: Navin Karkera <navin@opencraft.com>
Hi @navinkarkera! Flagging the new tests that have popped up, per the recent update: https://discuss.openedx.org/t/minor-change-to-edx-platform-check-statuses/11131 |
8d29434
to
facb9c8
Compare
Hi @openedx/arch-bom! is this something you can please review/merge for us? Thanks! |
Before digging into details, I made a comment related on this DEPR openedx/platform-roadmap#21 (comment) on site_configuration, because it would be useful to know direction around this. |
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.
Thank you. Mostly minor comments, and hoping that new tests would help me better understand the actual core changes of this PR.
facb9c8
to
0a46ea7
Compare
@robrap I have updated the PR to address your comments, please have a look when you find some time. |
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'd like to see some of the minor improvements to the test if you can, but none of my comments are blocking. Thank you!
5331bd7
to
d91a17e
Compare
@navinkarkera: Remind me if you'll need this merged for you, and let me know if you are ready for that. Thank you! |
Allows admins to configure same oauth backend for multiple sites (cherry picked from commit be4b676) refactor: remove site_id from provider_id (cherry picked from commit 7bbe8e8) fix: skip pipeline if oauth provider for site is not setup (cherry picked from commit ec738bc) docs: update test docstrings test: add test for oauth config per site
d91a17e
to
bd55bfe
Compare
@robrap Thanks! This is ready to be merged. |
@navinkarkera 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
2U Release Notice: This PR has been deployed to the edX production environment. |
Allows admins to configure same oauth backend for multiple sites. This change includes site_id in KEY_FIELDS for oauth configuration provider allowing a backend configuration for each site. (cherry picked from commit 565b34e)
Description
Currently, we can only add oauth configuration for a given backend to only a single site. This PR includes
site_id
inKEY_FIELDS
for oauth configuration provider allowing a backend configuration for each site.Supporting information
Mostly copied from eduNEXT/edunext-platform#601 except for minor changes like ignoring
site_id
in provider id as site_id is already considered while fetching the correct configuration.Testing instructions
make lms-up