def METHOD_NAME(self, prepared_request: PreparedRequest) -> PreparedRequest:
    integration = None
    base_qs = {
        "provider": EXTERNAL_PROVIDERS[ExternalProviders.SLACK],
        "status": ObjectStatus.ACTIVE,
    }
    if self.integration_id:
        integration = Integration.objects.filter(id=self.integration_id, **base_qs).first()
    elif self.org_integration_id:
        integration = Integration.objects.filter(
            organizationintegration__id=self.org_integration_id, **base_qs
        ).first()
    if not integration:
        logger.info("no_integration", extra={"path_url": prepared_request.path_url})
        return prepared_request
    token = (
        integration.metadata.get("user_access_token") or integration.metadata["access_token"]
    )
    prepared_request.headers["Authorization"] = f"Bearer {token}"
    return prepared_request