App Store Connect API finally lands on Bitrise

We're deprecating the old session-based authorization to Apple Developer Connection with the official one using JSON Web Tokens from Week 10.

We're deprecating the old session-based authorization to Apple Developer Connection with the official one using JSON Web Tokens.

Bitrise uses a step called iOS Auto Provision (will be renamed to: iOS Auto Provision with Apple ID) for Automatic Code Signing (more info here and here), and this new authentication is used by that step only. Fastlane, Deploy to iTunes Connect with Deliver, etc. will still use the session-based authentication.

Now there is a new way to connect your Bitrise account to Apple Developer Connection: the authorization will happen via a JSON Web Token. AppStore Connect API was introduced last year, and we'll also use the official solution only calling API endpoints. The good news is that now you don't have to use the whole account for authentication and you'll be able to set access levels for the keys.

The reason for the change is that the old way of connecting your Bitrise account with Apple Developer Connection is a workaround: it is session-based, and you need to enter your username and password and go through 2FA. This login is only valid for a month and it used the whole account, which was problematic for some users who didn't want to enter their credentials at all or again and again. This method will be deprecated, but you'll still be able to decide which method you'd like to use for each of your projects.

To set it up

Generate a new API key on App Store Connect under Users and Access.

undefined

Add a new one:

undefined

On Bitrise: Add an Account.

undefined

Then connect your API key.

undefined

In your workflow, remove the old  iOS Auto Provision (with Apple ID) step and add the new iOS Auto Provision with App Store Connect API instead.

You can choose to add authentication methods, for example, if you want to use Fastlane, you'll need both. Go to your app on Bitrise and click the Team tab. Under the Connected Apple Developer Portal Account choose the API key (learn more about Creating API keys for App Store Connect from the official Apple docs). For more details check out our DevCenter article.

undefined

Happy building!

No items found.

Explore more topics

App development

Best practices from engineers on how to use Bitrise to build better apps, faster.

Community

Meet other Bitrise engineers, technology experts, power users, partners and join our BUGs.

Company

All the updates about Bitrise events, sponsorships, employees, and more.

Insights

Mobile development, latest tech, industry insights, and interviews with experts.

Mobile DevOps

Learn why mobile development is unique and requires a set of unique practices.

Releases

Stay tuned for the last updates, new features, and product improvements.

Get the latest from Bitrise

Join other Mobile DevOps engineers who receive regular emails from Bitrise, filled with tips, news, and best practices.