Skip to content

Commit

Permalink
Update Apple auth URLs
Browse files Browse the repository at this point in the history
The URLs we were using were originally from the xcode-install project and had been working up until today (2019/11/12). These URLs were updated in that project (actually in fastlane, which it uses for auth) about 7 months ago but I didn't notice this. I started to look in a web inspector while signing in to developer.apple.com and saw that the Olympus session URL changed. Dave DeLong noted that a slightly different URL worked for the iTC service key, which is also what xcinfo uses.

fastlane/fastlane#14509
#83 (comment)
https://github.com/xcodereleases/xcinfo/blob/e51f022db3584be884b5d10d8b161ac26dbbee0b/Sources/OlympUs/OlympUs.swift#L213
  • Loading branch information
interstateone committed Nov 13, 2019
1 parent a0b419a commit ea8a1b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/AppleAPI/URLRequest+Apple.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Foundation

extension URL {
static let itcServiceKey = URL(string: "https://olympus.itunes.apple.com/v1/app/config?hostname=itunesconnect.apple.com")!
static let itcServiceKey = URL(string: "https://appstoreconnect.apple.com/olympus/v1/app/config?hostname=itunesconnect.apple.com")!
static let signIn = URL(string: "https://idmsa.apple.com/appleauth/auth/signin")!
static let authOptions = URL(string: "https://idmsa.apple.com/appleauth/auth")!
static let submitSecurityCode = URL(string: "https://idmsa.apple.com/appleauth/auth/verify/trusteddevice/securitycode")!
static let trust = URL(string: "https://idmsa.apple.com/appleauth/auth/2sv/trust")!
static let olympusSession = URL(string: "https://olympus.itunes.apple.com/v1/session")!
static let olympusSession = URL(string: "https://appstoreconnect.apple.com/olympus/v1/session")!
}

extension URLRequest {
Expand Down

0 comments on commit ea8a1b5

Please sign in to comment.