Hi all,
I have openedx version= maple.3 with tutor= 13.3.1
and face an issue with SSO SAML:
2023-04-18 12:06:55 2023-04-18 12:06:55,814 ERROR 24 [common.djangoapps.third_party_auth.pipeline] [user None] [ip****** ] pipeline.py:846 - [Multiple_SSO_SAML_Accounts_Association_to_User] Error in saml multiple accounts association: User ID: ***, User Email: *****:,Provider ID: saml-nic, Exception: EnterpriseCustomerIdentityProvider matching query does not exist.
2023-04-18 12:06:55 Traceback (most recent call last):
2023-04-18 12:06:55 File "/openedx/edx-platform/common/djangoapps/third_party_auth/pipeline.py", line 812, in associate_by_email_if_enterprise_user
2023-04-18 12:06:55 enterprise_customer_user = is_enterprise_customer_user(current_provider.provider_id, current_user)
2023-04-18 12:06:55 File "/openedx/edx-platform/common/djangoapps/third_party_auth/utils.py", line 94, in is_enterprise_customer_user
2023-04-18 12:06:55 enterprise_idp = EnterpriseCustomerIdentityProvider.objects.get(provider_id=provider_id)
2023-04-18 12:06:55 File "/openedx/venv/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method
2023-04-18 12:06:55 return getattr(self.get_queryset(), name)(*args, **kwargs)
2023-04-18 12:06:55 File "/openedx/venv/lib/python3.8/site-packages/django/db/models/query.py", line 435, in get
2023-04-18 12:06:55 raise self.model.DoesNotExist(
2023-04-18 12:06:55 enterprise.models.EnterpriseCustomerIdentityProvider.DoesNotExist: EnterpriseCustomerIdentityProvider matching query does not exist.
2023-04-18 12:06:55 2023-04-18 12:06:55,844 INFO 24 [common.djangoapps.third_party_auth.pipeline] [user None] [ip *****] pipeline.py:969 - [THIRD_PARTY_AUTH] User performed SSO and data was synchronized. Username: ****
This issue causes users to have multiple accounts in auth table, and the user tries many times to access the system. The table usersocialauth takes the last profile of the user and makes the relation.
Also, this issue causes users’ information spread between multiple profiles, for example, progress in the course … etc.
Note: I followed up steps in link below on configuring SAML:
https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/tpa/tpa_SAML_SP.html
Any support?