Skip to content

feat: allow oauth configuration per site and backend - #542

Merged
navinkarkera merged 3 commits into
opencraft-release/nutmeg.2from
navin/multisite-oauth-config
Jul 7, 2023
Merged

feat: allow oauth configuration per site and backend#542
navinkarkera merged 3 commits into
opencraft-release/nutmeg.2from
navin/multisite-oauth-config

Conversation

@navinkarkera

@navinkarkera navinkarkera commented Jun 19, 2023

Copy link
Copy Markdown
Member

Allows admins to configure same oauth backend for multiple sites.

Private-ref: BB-7589

@navinkarkera navinkarkera self-assigned this Jun 19, 2023
@navinkarkera
navinkarkera force-pushed the navin/multisite-oauth-config branch from 74d2168 to 38b6bd9 Compare June 19, 2023 10:35
@navinkarkera
navinkarkera requested a review from kaustavb12 June 19, 2023 10:36
@Agrendalath

Copy link
Copy Markdown
Member

@navinkarkera, please add a ticket number to this PR.

@navinkarkera

Copy link
Copy Markdown
Member Author

@Agrendalath Done.

@itsjeyd

itsjeyd commented Jul 4, 2023

Copy link
Copy Markdown
Member

Hey @navinkarkera, will you be opening a PR against upstream master with these changes?

@navinkarkera

Copy link
Copy Markdown
Member Author

@itsjeyd I am not sure whether we should upstream this. I think it would be useful. @kaustavb12 What do you think?

@Agrendalath

Copy link
Copy Markdown
Member

@navinkarkera,

I am not sure whether we should upstream this.

If we don't have a very good reason not to upstream it - yes, we should. Otherwise, we should look for another way to implement this - e.g., as a plugin/extension.

@navinkarkera
navinkarkera force-pushed the navin/multisite-oauth-config branch from 9f55ee9 to ec738bc Compare July 5, 2023 15:37
@navinkarkera

Copy link
Copy Markdown
Member Author

@Agrendalath I'll create a PR against master and wait for upstream reviewers comments.

Comment thread common/djangoapps/third_party_auth/models.py
Comment thread common/djangoapps/third_party_auth/models.py Outdated
Comment thread common/djangoapps/third_party_auth/tests/test_provider.py
@kaustavb12

Copy link
Copy Markdown
Member

@navinkarkera I don't see a reason not to upstream this.

@navinkarkera
navinkarkera force-pushed the navin/multisite-oauth-config branch from 28bafb3 to 7bbe8e8 Compare July 6, 2023 06:39

@kaustavb12 kaustavb12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

  • I tested this: Tested in devstack and in sandbox
  • I read through the code
  • I checked for accessibility issues
  • Includes documentation
  • I made sure any change in configuration variables is reflected in the corresponding client's configuration-secure repository.

@navinkarkera
navinkarkera merged commit 236f7a5 into opencraft-release/nutmeg.2 Jul 7, 2023
@navinkarkera
navinkarkera deleted the navin/multisite-oauth-config branch July 7, 2023 08:41
kaustavb12 added a commit that referenced this pull request Aug 15, 2023
* 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>
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.

4 participants