Ver código fonte

Switch Zoom OAuth defaults to Marketplace Production credentials.

Point bundled fallbacks, Info.plist keys, and the Xcode Run scheme at the
Production Client ID, Public Client ID, and Client Secret so Archive and
App Store builds use Production PKCE OAuth for Ready for beta test.

Co-authored-by: Cursor <cursoragent@cursor.com>
Uzair Tahir 3 meses atrás
pai
commit
bf8ef91e49

+ 4 - 4
zoom_app.xcodeproj/project.pbxproj

@@ -273,8 +273,8 @@
 				INFOPLIST_KEY_NSPrincipalClass = NSApplication;
 				INFOPLIST_KEY_NSScreenCaptureUsageDescription = "Companion AI for Zoom captures system audio during meetings (when allowed) so recordings include computer sound in AI Companion.";
 				INFOPLIST_KEY_NSSpeechRecognitionUsageDescription = "Companion AI for Zoom uses Apple speech recognition to generate transcripts from your saved meeting audio in AI Companion.";
-				INFOPLIST_KEY_ZoomOAuthClientId = 93KBkYhHSZWU2OMZzs1aug;
-				INFOPLIST_KEY_ZoomOAuthPublicClientId = jiqoyZUQAyYQAfd4Lfk9g;
+				INFOPLIST_KEY_ZoomOAuthClientId = X4fHO95lTdWGvmvQYGeQEA;
+				INFOPLIST_KEY_ZoomOAuthPublicClientId = bCMJ3KHVR8K1SkZC5ubmXg;
 				LD_RUNPATH_SEARCH_PATHS = (
 					"$(inherited)",
 					"@executable_path/../Frameworks",
@@ -316,8 +316,8 @@
 				INFOPLIST_KEY_NSPrincipalClass = NSApplication;
 				INFOPLIST_KEY_NSScreenCaptureUsageDescription = "Companion AI for Zoom captures system audio during meetings (when allowed) so recordings include computer sound in AI Companion.";
 				INFOPLIST_KEY_NSSpeechRecognitionUsageDescription = "Companion AI for Zoom uses Apple speech recognition to generate transcripts from your saved meeting audio in AI Companion.";
-				INFOPLIST_KEY_ZoomOAuthClientId = 93KBkYhHSZWU2OMZzs1aug;
-				INFOPLIST_KEY_ZoomOAuthPublicClientId = jiqoyZUQAyYQAfd4Lfk9g;
+				INFOPLIST_KEY_ZoomOAuthClientId = X4fHO95lTdWGvmvQYGeQEA;
+				INFOPLIST_KEY_ZoomOAuthPublicClientId = bCMJ3KHVR8K1SkZC5ubmXg;
 				LD_RUNPATH_SEARCH_PATHS = (
 					"$(inherited)",
 					"@executable_path/../Frameworks",

+ 3 - 3
zoom_app.xcodeproj/xcshareddata/xcschemes/zoom_app.xcscheme

@@ -54,17 +54,17 @@
       <EnvironmentVariables>
          <EnvironmentVariable
             key = "ZOOM_OAUTH_CLIENT_ID"
-            value = "93KBkYhHSZWU2OMZzs1aug"
+            value = "X4fHO95lTdWGvmvQYGeQEA"
             isEnabled = "YES">
          </EnvironmentVariable>
          <EnvironmentVariable
             key = "ZOOM_OAUTH_PUBLIC_CLIENT_ID"
-            value = "jiqoyZUQAyYQAfd4Lfk9g"
+            value = "bCMJ3KHVR8K1SkZC5ubmXg"
             isEnabled = "YES">
          </EnvironmentVariable>
          <EnvironmentVariable
             key = "ZOOM_OAUTH_CLIENT_SECRET"
-            value = "d4UpsacInKFx1MmFv6DJ676RP8Nyfya7"
+            value = "yG75pEEVsQ94GgqN8j2EBdv3WaD57m5c"
             isEnabled = "YES">
          </EnvironmentVariable>
       </EnvironmentVariables>

+ 5 - 5
zoom_app/ViewController.swift

@@ -10826,12 +10826,12 @@ final class ZoomOAuthService: NSObject {
     private let envPublicClientIdKey = "ZOOM_OAUTH_PUBLIC_CLIENT_ID"
     private let envClientSecretKey = "ZOOM_OAUTH_CLIENT_SECRET"
     // Optional: put OAuth app credentials here for local-only testing (do not ship secrets in release builds).
-    /// Confidential Client ID (token refresh). Fallback if env / Info.plist is missing.
-    private let bundledClientId = "93KBkYhHSZWU2OMZzs1aug"
-    /// Public Client ID for loopback authorize + PKCE (Development Marketplace value).
-    private let bundledPublicClientId = "jiqoyZUQAyYQAfd4Lfk9g"
+    /// Confidential Client ID (token refresh). Production Marketplace value — used by Archive/App Store builds.
+    private let bundledClientId = "X4fHO95lTdWGvmvQYGeQEA"
+    /// Public Client ID for loopback authorize + PKCE (Production Marketplace value).
+    private let bundledPublicClientId = "bCMJ3KHVR8K1SkZC5ubmXg"
     /// Prefer `ZOOM_OAUTH_CLIENT_SECRET` env or UserDefaults when distributing; rotate if this value is ever leaked.
-    private let bundledClientSecret = "d4UpsacInKFx1MmFv6DJ676RP8Nyfya7"
+    private let bundledClientSecret = "yG75pEEVsQ94GgqN8j2EBdv3WaD57m5c"
 
     func setClientCredentials(clientId: String, clientSecret: String, publicClientId: String? = nil) {
         UserDefaults.standard.set(clientId, forKey: clientIdDefaultsKey)