(cls, username)
return None
Gets the Identity Provider for the given username only if that
        user is required to login or sign up with that Identity Provider.
        :param username: String
        :return: IdentityProvider or None
Gets the Identity Provider for the given username only if that
        user is required to login or sign up with that Identity Provider.
        :param username: String
        :return: IdentityProvider or None
Gets the Identity Provider for the given username only if that user is required to login or sign up with that Identity Provider . : param username : String : return : IdentityProvider or None
def get_required_identity_provider(cls, username):
        """
        Gets the Identity Provider for the given username only if that
        user is required to login or sign up with that Identity Provider.
        :param username: String
        :return: IdentityProvider or None
        """
        idp = cls.get_active_identity_provider_by_username(username)
        if idp and not UserExemptFromSingleSignOn.objects.filter(
            username=username
        ).exists():
            return idp
        return None
def get_required_identity_provider ( cls , username ) : idp = cls . get_active_identity_provider_by_username ( username ) if idp and not UserExemptFromSingleSignOn . objects . filter ( username = username ) . exists ( ) : return idp return None