Skip to content
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

No module named 'third_party_auth' issue solved #604

Closed

Conversation

CodeWithEmad
Copy link
Member

Here is the fix for #601
I tested THIRD_PARTY_AUTH_BACKENDS = ["third_party_auth.saml.SAMLAuthBackend"] and it's working. yay

@@ -53,7 +53,7 @@ Enable SAML authentication

openedx-lms-common-settings: |
# saml special settings
AUTHENTICATION_BACKENDS += ["third_party_auth.saml.SAMLAuthBackend", "django.contrib.auth.backends.ModelBackend"]
THIRD_PARTY_AUTH_BACKENDS = ["third_party_auth.saml.SAMLAuthBackend"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you quite sure that this is the right fix? Looking at the source code, the THIRD_PARTY_AUTH_BACKENDS setting is not read at all. I believe that the import error is caused by the fact that we should now specify the full import path: common.djangoapps.third_party_auth.saml.SAMLAuthBackend.

Can you please test again your plugin and my proposed change, see which one works?

regisb added a commit that referenced this pull request Mar 17, 2022
@regisb
Copy link
Contributor

regisb commented Mar 17, 2022

Closed in favor of 2cf4e6d

@regisb regisb closed this Mar 17, 2022
regisb added a commit that referenced this pull request Mar 17, 2022
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.

2 participants