def METHOD_NAME(self, **kwargs) -> Optional[Dict[str, Any]]:
    single_sign_on_feature_active = is_sso_feature_active()
    if not single_sign_on_feature_active:
        return None
    configured_domains = SamlAuthProviderModel.objects.filter(enabled=True).count()
    if not configured_domains:
        return None
    default_redirect_url = None
    if configured_domains == 1:
        default_redirect_url = self.get_login_absolute_url()
    if configured_domains > 1:
        default_redirect_url = get_frontend_login_saml_url()
    return {
        "type": self.type,
        # if configure_domains = 1, we can redirect directly the user to the
        # IdP login page without asking for the email
        "domain_required": configured_domains > 1,
        "default_redirect_url": default_redirect_url,
    }