Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
229 views
in Technique[技术] by (71.8m points)

ios - Is there a way to upload screenshots with fastlane for 2FA enabled account without user interaction (e.g. via hardware key)?

Since Apple enforces AppleID accounts to be 2fa enabled and allows only application binary to be uploaded via API with app specific password I can not find a way to get the screenshots uploads fully automated.

I've tried obtaining session token as suggested in fastlane docs

fastlane spaceauth -u user@email.com

but obviously it also triggers 2FA procedure. Now the question is if this 2FA could be somehow fulfilled with hardware key like Yubico so that session token generation doesn't require any person involvement.

In addition to that it would be great if >100 AppleIDs could be secured with that single hardware key.

Any other solution is welcome. Thank you.

question from:https://stackoverflow.com/questions/65884026/is-there-a-way-to-upload-screenshots-with-fastlane-for-2fa-enabled-account-witho

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You should use an API key with the App Store Store Connect APIs. You can create API keys through AppStore Connect

The username/password authentication capability provided by FastLane was never officially supported by API. FastLane documentation recommends the use of API keys over username/password where possible:

It is recommended to use the API Key authentication when you are able to. The benefits include:

  • No 2FA needed
  • Better performance
  • Documented API
  • Increased reliability

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...