Social login configuration for edx as plugin in tutor

I am trying to add google and facebook login to my platform. I followed this doc and trying to make a tutor yaml plugin. Please let me know if i am on right track!

name: SocialsignIn
version: 0.1.0
 common-env-features: |

 openedx-lms-common-settings: |
    # saml special settings
    THIRD_PARTY_AUTH_BACKENDS = ["","social_core.backends.facebook.FacebookOAuth2"]

  openedx-auth: |
        "google-oauth2": "abcdef123456789101112131",
        "facebook": "98765432181bbe3a2596efa8ba7abcde"

is this solved? @premkanish

Yeah @premkanish I have the same question. I’d like to use SSO eventually too…

For whoever is still working to add OAuth2 to Tutor.

Here is our plugin:

name: third-party-auth
version: 1.0.0
  common-env-features: |
  openedx-auth: |
    "SOCIAL_AUTH_OAUTH_SECRETS": {"google-oauth2": "client-secret-from-google"}
  lms-env: |

Then, go to “Provider Configuration (OAuth)” in your Django admin panel:

  • Home › Third-party authentication › Provider Configuration (OAuth)
  • URL: admin/third_party_auth/oauth2providerconfig/

Click “ADD PROVIDER CONFIGURATION (OAUTH)” to add your provider.

We use these settings, but your might be slightly different.

  1. Icon class: fa-google
  2. Skip registration form
  3. Skip email verification
  4. Send welcome email
  5. Visible
  6. Backend name: google-oauth2
  7. Client ID: Enter client ID from the OAuth2 provider
  8. Client Secret: (leave blank! The value is in the plugin.)

Use the “Enabled” checkbox at the top of the page to enable or disable the OAuth2 login button.

That’s it!


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.