Skip to content

Commit 338ec18

Browse files
committed
feat: add associate_by_email in auth pipeline
We want to associate learners by email provided by the IdP. This would work in the usecase when a learner already has an account and is trying to login via SAML SSO. Right now if a learner with an existing account would try to login via a new SAML SSO which is not associated to their account yet, they will be prompted to enter their credentials, since the associate_by_email_if_saml pipeline step only works if enterprise app is enabled and a learner is an enterprise user. The client is migrating to the new SSO, and we want the learners to not have to enter their credentials.
1 parent c7a31a1 commit 338ec18

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

common/djangoapps/third_party_auth/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def apply_settings(django_settings):
5353
'social_core.pipeline.social_auth.social_uid',
5454
'social_core.pipeline.social_auth.auth_allowed',
5555
'social_core.pipeline.social_auth.social_user',
56+
'social_core.pipeline.social_auth.associate_by_email',
5657
'common.djangoapps.third_party_auth.pipeline.associate_by_email_if_login_api',
5758
'common.djangoapps.third_party_auth.pipeline.associate_by_email_if_saml',
5859
'common.djangoapps.third_party_auth.pipeline.associate_by_email_if_oauth',

0 commit comments

Comments
 (0)