(self, domain)
return is_active_member
Checks whether the given Domain trusts this Identity Provider.
        :param domain: String (the Domain name)
        :return: Boolean (True if Domain trusts this Identity Provider)
Checks whether the given Domain trusts this Identity Provider.
        :param domain: String (the Domain name)
        :return: Boolean (True if Domain trusts this Identity Provider)
Checks whether the given Domain trusts this Identity Provider . : param domain : String ( the Domain name ) : return : Boolean ( True if Domain trusts this Identity Provider )
def does_domain_trust_this_idp(self, domain):
        """
        Checks whether the given Domain trusts this Identity Provider.
        :param domain: String (the Domain name)
        :return: Boolean (True if Domain trusts this Identity Provider)
        """
        is_active_member = self.is_domain_an_active_member(domain)
        if not is_active_member:
            # Since this Domain is not an Active Member, check whether an
            # administrator of this domain has trusted this Identity Provider
            return TrustedIdentityProvider.objects.filter(
                domain=domain, identity_provider=self
            ).exists()
        return is_active_member
def does_domain_trust_this_idp ( self , domain ) : is_active_member = self . is_domain_an_active_member ( domain ) if not is_active_member : # Since this Domain is not an Active Member, check whether an # administrator of this domain has trusted this Identity Provider return TrustedIdentityProvider . objects . filter ( domain = domain , identity_provider = self ) . exists ( ) return is_active_member