(cls, username)
return cls.get_active_identity_provider_by_email_domain(email_domain)
Returns the active Identity Provider associated with a user's email
        domain or None.
        :param username: (string)
        :return: IdentityProvider or None
Returns the active Identity Provider associated with a user's email
        domain or None.
        :param username: (string)
        :return: IdentityProvider or None
Returns the active Identity Provider associated with a user s email domain or None . : param username : ( string ) : return : IdentityProvider or None
def get_active_identity_provider_by_username(cls, username):
        """
        Returns the active Identity Provider associated with a user's email
        domain or None.
        :param username: (string)
        :return: IdentityProvider or None
        """
        email_domain = get_email_domain_from_username(username)
        if not email_domain:
            # malformed username/email
            return None
        return cls.get_active_identity_provider_by_email_domain(email_domain)
def get_active_identity_provider_by_username ( cls , username ) : email_domain = get_email_domain_from_username ( username ) if not email_domain : # malformed username/email return None return cls . get_active_identity_provider_by_email_domain ( email_domain )