Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
263 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 [email protected]

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 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...