YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat(quickbooks): switch to Production Intuit OAuth app
Louis Beaumonta6bb375bc66e
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/oauth.rs b/apps/screenpipe-app-tauri/src-tauri/src/oauth.rsindex c2b3241df..816d75734 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/oauth.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/oauth.rs@@ -210,16 +210,13 @@ pub async fn oauth_connect(}// QuickBooks: fetch the company name to use as the workspace display name.- // Uses the sandbox host because our current Intuit OAuth app is registered on- // the Development tab — Dev tokens only authenticate against the sandbox.- // Swap to `quickbooks.api.intuit.com` when promoting a Production app.if integration_id == "quickbooks" {if let (Some(realm_id), Some(access_token)) = (token_data["realmId"].as_str().map(String::from),token_data["access_token"].as_str().map(String::from),) {let url = format!(- "https://sandbox-quickbooks.api.intuit.com/v3/company/{}/companyinfo/{}",+ "https://quickbooks.api.intuit.com/v3/company/{}/companyinfo/{}",realm_id, realm_id);if let Ok(resp) = clientdiff --git a/crates/screenpipe-connect/src/connections/quickbooks.rs b/crates/screenpipe-connect/src/connections/quickbooks.rsindex fd1f6e83b..da7231175 100644--- a/crates/screenpipe-connect/src/connections/quickbooks.rs+++ b/crates/screenpipe-connect/src/connections/quickbooks.rs@@ -27,9 +27,12 @@ static DEF: IntegrationDef = IntegrationDef {static OAUTH: OAuthConfig = OAuthConfig {auth_url: "https://appcenter.intuit.com/connect/oauth2",- client_id: "ABNRiJAvFPuyXbm2qHmb6RHdKCjvlNIDJWqc31JNMxyC44aIdr",+ // Production Intuit OAuth client. Production tab requires HTTPS public+ // redirect — relayed through the website at screenpi.pe/api/oauth/callback,+ // same pattern as Zoom/Calendly.+ client_id: "ABICNYWw4y8ZaOr7cU8gbN9V4x8O6pGVewh4viZ1cpMzt2Ir3C",extra_auth_params: &[("scope", "com.intuit.quickbooks.accounting")],- redirect_uri_override: None,+ redirect_uri_override: Some("https://screenpi.pe/api/oauth/callback"),};pub struct QuickBooks;@@ -47,13 +50,8 @@ impl Integration for QuickBooks {fn proxy_config(&self) -> Option<&'static ProxyConfig> {// {realmId} is resolved from the OAuth token JSON, which is merged into credentials// by the proxy handler in screenpipe-engine/src/connections_api.rs.- //- // NOTE: hosted on `sandbox-quickbooks.api.intuit.com` because our current- // Intuit OAuth client is registered on the **Development** tab — Dev tokens- // only authenticate against the sandbox environment. When we promote a- // Production Intuit app, swap to `quickbooks.api.intuit.com`.static CFG: ProxyConfig = ProxyConfig {- base_url: "https://sandbox-quickbooks.api.intuit.com/v3/company/{realmId}",+ base_url: "https://quickbooks.api.intuit.com/v3/company/{realmId}",auth: ProxyAuth::Bearer {credential_key: "api_key",},@@ -82,9 +80,8 @@ impl Integration for QuickBooks {.as_str().ok_or_else(|| anyhow!("realmId missing — please reconnect QuickBooks Online"))?;- // Sandbox host — Dev tokens only work here. See proxy_config() comment.let url = format!(- "https://sandbox-quickbooks.api.intuit.com/v3/company/{}/companyinfo/{}",+ "https://quickbooks.api.intuit.com/v3/company/{}/companyinfo/{}",realm_id, realm_id);