(cls, email_domain)
return idp if idp.is_active else None
Returns the active Identity Provider associated with a given email
        domain or None.
        :param email_domain: (string)
        :return: IdentityProvider or None
Returns the active Identity Provider associated with a given email
        domain or None.
        :param email_domain: (string)
        :return: IdentityProvider or None
Returns the active Identity Provider associated with a given email domain or None . : param email_domain : ( string ) : return : IdentityProvider or None
def get_active_identity_provider_by_email_domain(cls, email_domain):
        """
        Returns the active Identity Provider associated with a given email
        domain or None.
        :param email_domain: (string)
        :return: IdentityProvider or None
        """
        try:
            authenticated_email_domain = AuthenticatedEmailDomain.objects.get(
                email_domain=email_domain
            )
            idp = authenticated_email_domain.identity_provider
        except AuthenticatedEmailDomain.DoesNotExist:
            return None
        return idp if idp.is_active else None
def get_active_identity_provider_by_email_domain ( cls , email_domain ) : try : authenticated_email_domain = AuthenticatedEmailDomain . objects . get ( email_domain = email_domain ) idp = authenticated_email_domain . identity_provider except AuthenticatedEmailDomain . DoesNotExist : return None return idp if idp . is_active else None