Configure OAuth from a provider not listed

Our observatory runs a site with Django OAuth Toolkit installed. I’m trying to configure Openedx (sumac) to use the observatory OAuth provider for login. After setting up a client on our observatory site, I tried setting this up in the OpenEdx django admin under:

Home › Third-party authentication › Provider Configuration (OAuth)

  • Check ‘enable’
  • Check ‘visible’
  • Select google-oauth2 (even though we are using a non-Google provider because there is no option for generic)
  • Enter client secret
  • Enter client ID

I tried going to the link suggested in the docs:
http://local.openedx.io:8000/auth/complete/google-oauth2/

but I get a Django error page saying “Can’t fetch setting of a disabled backend/provider.”

Anyone have experience setting up OAuth2 authentication with a third-party (but not a social) provider?

You need to mark true for ENABLE_THIRD_PARTY_AUTH

https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/tpa/tpa_integrate_open/tpa_oauth.html#additional-oauth2-providers-advanced