-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xcode_install 2FA #436
Comments
AFAIK this gem is a parser for https://developer.apple.com/devcenter/ and thus it's not supported by API. If you've already found a solution, please share it with us. |
Here's a related ticket you might find useful information (including workarounds): #395 |
Just curious, it has been a while since this topic was revisited. Is there a reason why /devcenter doesn't accept any jwt auth tokens as part of the headers or will only a valid cookie auth through to this endpoint? |
@daemedeor IIRC the reason is that the official API provided by Apple doesn't contain APIs to download Xcode. The code this project uses is the undocumented/unofficial API, which only supports user/pass (and not the JWT auth token). This comment can be outdated 😬 that might not be the case anymore, but that has always been the case. |
Yeah, I've been looking into the responses, and I couldn't figure out if there was another header that would allow me to use anything other than the cookies. Since it's undocumented, I was wondering if anyone has seen anything different yet. I'm happy to do the work that if it's a manpower issue but I'm just not great about sniffing network traffic for this particular endpoint. Edit: Cheers for the response though. I'll see if I can use Charles proxy or something similar to try one more time. |
No problem! :) From an authenticated spaceship client, perhaps you can poke around to see if any of the APIs we hit in this repo will work with the JWT-based auth 🤞 Best of luck! |
Yup! I've been playing around and at least got it to the point where I understand the new auth system. Just trying to figure out the header view and hope everything pulls out. Edit: So this is the landscape as I see it currently. I tried accessing this url (https://developer.apple.com/services-account/download?path=%2FDeveloper_Tools%2FXcode_13.2.1%2FXcode_13.2.1.xip) by generating a token, utilizing spaceship connect API by supplying a new API client. then hitting the url by trying a simple get command. However, even with all the rest authenticated correctly, the client kept still redirecting me to |
Ah, that makes sense 😞 Yeah, unfortunately everything leads us to think that it's still not available (not even as a undocumented official API) 😬 Thanks for digging into this @daemedeor ! That was super helpful! Hopefully they release an API for this soon enough 🤞 |
Guys, is there a way to generate a SESSION cookie with the JWT auth token? |
Hi guy,
We are using Fastlane for the whole project CI.
Maybe I miss something but we can't use
xcode_install
lane, if the account specified in AppFile apple_id("[email protected]") has 2FA activated.We are using
app_store_connect_api_key
lane to avoid OTP on other actions like sign, match, deliver.There is a way to be able to have xcode_install working in a CI environment with prompting for password or OTP ?
Console output :
Cheers,
Ben
The text was updated successfully, but these errors were encountered: