From 450223eb07ae3112f4e8ee4bc5d460f489bd9e85 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Thu, 10 Sep 2026 18:37:31 -0400 Subject: [PATCH] gsa: fix auth again (#257) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What does this PR do? Fixes HTTP 503 on GsService… again (followup from #244) Seems like GSA has stopped accepting `com.apple.dt.Xcode` in the client info string. Use `akd` instead. ## How was it tested? - [x] Logging in before failed - [x] Logging in after succeeds ## AI tool usage How much of this PR was AI-assisted? (check one) - [x] **0** - No AI was used to write code - [ ] **1** - I was assisted by AI. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only --- Sources/XKit/GrandSlam/Anisette/DeviceInfo.swift | 4 ++-- Sources/XKit/GrandSlam/Lookup/GrandSlamLookupManager.swift | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/XKit/GrandSlam/Anisette/DeviceInfo.swift b/Sources/XKit/GrandSlam/Anisette/DeviceInfo.swift index dcb4e7aa..3b812d7a 100644 --- a/Sources/XKit/GrandSlam/Anisette/DeviceInfo.swift +++ b/Sources/XKit/GrandSlam/Anisette/DeviceInfo.swift @@ -21,12 +21,12 @@ public struct DeviceInfo: Codable, Sendable { var clientString: String { """ - <\(modelID)> + <\(modelID)> """ } var userAgent: String { - "AuthKit/1 (Macintosh; OS X 26.6) (com.apple.dt.Xcode/26.0)" + "AuthKit/1 (Macintosh; OS X 27.0) (com.apple.dt.Xcode/26.5)" } public init(modelID: String) { diff --git a/Sources/XKit/GrandSlam/Lookup/GrandSlamLookupManager.swift b/Sources/XKit/GrandSlam/Lookup/GrandSlamLookupManager.swift index d734ba31..4301e1db 100644 --- a/Sources/XKit/GrandSlam/Lookup/GrandSlamLookupManager.swift +++ b/Sources/XKit/GrandSlam/Lookup/GrandSlamLookupManager.swift @@ -39,6 +39,7 @@ actor GrandSlamLookupManager { } */ var request = HTTPRequest(url: Self.lookupURL) request.headerFields = [ + .userAgent: deviceInfo.clientInfo.userAgent, .init(DeviceInfo.clientInfoKey)!: deviceInfo.clientInfo.clientString, .init(DeviceInfo.deviceIDKey)!: deviceInfo.deviceID, .init(AnisetteData.iLocaleKey)!: Locale.current.identifier,