Some settings use both plugins and the settings in the Django admin panel.
First, create a Google API and Service project
Additional documentation: https://developers.google.com/identity/sign-in/web/reference#gapiauth2clientconfig
Next, create the plugin using the client secret from the OAuth provider.
nano $(tutor plugins printroot)/third-party-auth.yml
Plugin contents:
name: third-party-auth
version: 1.0.0
patches:
common-env-features: |
"ENABLE_THIRD_PARTY_AUTH": true
openedx-auth: |
"SOCIAL_AUTH_OAUTH_SECRETS": {"google-oauth2": "client-secret-from-google"}
lms-env: |
"THIRD_PARTY_AUTH_BACKENDS": ["social_core.backends.google.GoogleOAuth2"]
Lastly, go to “Provider Configuration (OAuth)” in your Django admin panel:
https://edx.example.com/admin
Home › Third-party authentication › Provider Configuration (OAuth)
https://edx.example.com/admin/third_party_auth/oauth2providerconfig/
ADD PROVIDER CONFIGURATION (OAUTH)
to add your provider.Configure the provider based on your needs. We use these settings:
Use the Enabled
checkbox at the top of the page to enable or disable the OAuth2 login button.
Powered by Grav + with by Trilby Media.
© Copyright 2021, EKTU EdTech | CC BY 4.0 | Licensed under the Creative Commons Attribution 4.0 International license