Appcenter: AppStore Connect two factor auth with trusted phone number is not possible

Created on 6 Sep 2019  ·  43Comments  ·  Source: microsoft/appcenter

As part of distribution of iOs build there is a possibility to deploy it directly to AppStore/TestFlight vis store connection.

Currently while creating new connection for AppStore Connect i can't use trusted phone number and i don't have ios device with linked Apple Id, so there are no way to create a store connection.

It will be great to be able use trusted phone number and got two factor auth via sms or phone call.

feature request reviewed-DRI stores

Most helpful comment

I'm in a bit of a bind with this one. We use managed Apple IDs in the company and Apple has disabled the "trusted devices" 2FA for managed Apple IDs and I can only receive the code via SMS. But, as the screenshot above shows, App Center doesn't support 2FA via SMS codes.

I would be very grateful if you could add support for SMS codes as I'm unable to set up TestFlight distribution in App Center at all at the moment.

All 43 comments

Hi @evorotnikov - thanks for your feedback! We'll take that into consideration for future prioritization.

@evorotnikov Are you talking about support for 2-step verification instead of 2-factor authentication?

@Oddj0b not really in my understanding, it's still 2-factor, but apple originally provide several options how to get a second factor:

  • Default is via Apple codes (okta like) when you have a trusted device
  • Alternative is by sending sms or calling trusted phone number (in case you don't have trusted ios device)

So second case is not covered in appcenter in my opinion.

Attaching what i see while logging in into developer.apple.com:

Screen Shot 2019-09-10 at 10 12 35 AM
Screen Shot 2019-09-10 at 10 12 29 AM

@evorotnikov thanks for clarifying, I wasn't aware that Apple offered a service like this. I'll talk with our engineers to understand how hard it would be to implement. We normally prioritize Github tickets by reaction and if this receives enough 👍 there's a bigger chance it will be implemented.

@Oddj0b sure, thanks for replying to this one. I hope it will eventually be in.

@evorotnikov
Apple by default sends 2FA codes to your trusted phone number if you have no devices linked.
Please check once https://appleid.apple.com/account/manage

image

And you should be able to create a store connection in AppCenter with the codes you receive to your phone number as you mentioned that your account has no devices linked.
We hope you are not blocked currently.

But yeah option where we explicitly wants to receive the code to the phone instead of devices is not available in AppCenter.

I can't use my SMS code to connect the apple account. This is very frustrating as my iPhone died. The code won't go to my macbook and I'm stuck unable to upload our production build.

Hi @bramski
If I understand correctly, you are not receiving codes to your MacBook.
Can you check if your MacBook is listed under trusted devices here

It's tied to a dead iphone and since that's unavailable i'm getting them by SMS. My Macbook is a trusted device.

I searched through why my macbook isn't receiving them; apple prefers to send to your mobile device and if that's unavailable it will send to your SMS. So I'm stuck unable to upload my builds until I can revive the iPhone.

Oh thats strange why your MacBook is not receiving the 2fa codes.
Notifications are hidden, if you have DnD mode ON, if so please turn it off and give a try.
image

This is also happening to me.

  • My MacBook is listed under "Devices" for my Apple ID.
  • I'm receiving a text message, but if I enter the code, I get an error saying "Two-Factor Authentication via SMS is currently not supported".

Turns out that I was signed into a different Apple ID on my MacBook. Once I switched accounts, I got the message.

It sounds like you have a trusted phone number and not a trusted device: https://support.apple.com/en-us/HT204915

Is there any movement on this? Noticed the error message states that I can't use text messages.
image

I'm in a bit of a bind with this one. We use managed Apple IDs in the company and Apple has disabled the "trusted devices" 2FA for managed Apple IDs and I can only receive the code via SMS. But, as the screenshot above shows, App Center doesn't support 2FA via SMS codes.

I would be very grateful if you could add support for SMS codes as I'm unable to set up TestFlight distribution in App Center at all at the moment.

I'm also stuck at this stage. Right now can't connect App Store because I don't have trusted device and there's no option to request to use trusted phone number added.

I'm in a bit of a bind with this one. We use managed Apple IDs in the company and Apple has disabled the "trusted devices" 2FA for managed Apple IDs and I can only receive the code via SMS. But, as the screenshot above shows, App Center doesn't support 2FA via SMS codes.

I would be very grateful if you could add support for SMS codes as I'm unable to set up TestFlight distribution in App Center at all at the moment.

@maciejtrybilo Do you have managed Apple IDs with federation enabled?

I'm facing the same issue

I have the same issue, it was working and I am unable to reconnect. I have multiple macbook pro's listed as devices but neither receive the code, it only comes via SMS

Same issue. SMS code come to phone but error message is
"The verification code entered is invalid. Make sure your trusted device is logged to iCloud. Two-Factor Authentication via SMS is currently not supported. Enter the valid pop-up two-factor code from your trusted device."

Same issue. I am received SMS code. But verification failed. Stil error message.

Same issue.

I'm using a separate Apple ID for development purposes (dev@...) instead of my personal Apple ID. From what I gather, I'd need to sign out of my iPhone with my personal Apple ID and sign in with the developer Apple ID so that my device could be recognized. However, that's a little cumbersome to have to do. Seems like the SMS code should suffice.

I found a workaround (for my use case ☝️) for this in case anyone is still stuck.

Under "Add a device to the list" on this support page (https://support.apple.com/en-us/HT205064), there's a list of places you can sign into for your device to be recognized. One of those places is Game Center. I don't really know what that is but I don't use it so I figured I'd see if I could sign into it. I took the following steps on my iPhone, although I'm sure the same/similar goes for iPad, Mac:

  1. Go to Game Center (I just searched it).
  2. Sign out if you're already signed in.
  3. Toggle Game Center back on, and sign in with the Apple ID you're trying to get passcodes for.
  4. At this point you should see your device listed as a trusted device.
  5. Then go to Settings and click on your name to view your Apple ID info (which won't be the same as the one you just used in Game Center), then Password & Security, then "Get Verification Code".
  6. I used this verification code for AppCenter and it worked. ¯_(ツ)_/¯

Hope that helps.

I'm in a bit of a bind with this one. We use managed Apple IDs in the company and Apple has disabled the "trusted devices" 2FA for managed Apple IDs and I can only receive the code via SMS. But, as the screenshot above shows, App Center doesn't support 2FA via SMS codes.
I would be very grateful if you could add support for SMS codes as I'm unable to set up TestFlight distribution in App Center at all at the moment.

@maciejtrybilo Do you have managed Apple IDs with federation enabled?

@maciejtrybilo yes i do.

@amie-wilt Thank you for that, but when I go to the Game Center I get a message: "This Apple ID cannot be used with Game Center. Your Managed Apple ID is not eligible to use Game Center."

@maciejtrybilo I did a quick search and maybe it's because your Game Center is toggled on for iCloud? I checked mine and it is not. I'd say trying turning it off if it is in fact turned on (Settings > Apple ID > iCloud) and then try those steps ☝️ again.

Does anyone at Microsoft actually maintain this product anymore? This is completely absurd. Fix your junk.

Edit because I probably need to explain myself. The demand for a trusted device (when Apple clearly does SMS auth and sends me the code that App Center rejects) is completely unreasonable. The "trusted device" must be signed in with the Apple ID in question. Your device can be signed in to only a single Apple ID at a time for a variety of reasons. A very large number of professional Apple developers (anyone at an agency / freelancer / etc.) may be acting agents for a dozen or more Apple developer accounts, which may never be associated with any of your devices in this way. The App Center failure to support this use case is baffling for a CI service.

image

Two-Factor Authentication via SMS is currently not supported.

When the "currently" is going to happen? :)
Are there any plans for this to be supported?

I want to give this another bump. Signing out and into developer accounts every 30 days is very annoying!

Bump. This as BROKEN. We cannot use App Center without this. Your integration is broken. Full stop. Additionally, generating app-specific passwords seems to no longer work?

No one care :v

@j-bbr it is not only annoying.
But since I don't use my PERSONAL Apple account for development, but rather a CORPORATE issued account.
I'm simply unable to log in at all!

Please fix this! I only have one device signed into my job Apple account. It works fine everywhere else using authentication via SMS to my personal phone, but not on AppCenter. This means we can no longer use the integration with AppStore at all.

No one cares :( leaving AppCenter soon.

I've hit the same issue with both trusted phone SMS codes and trusted device codes.

image

The screenshot above is for my work developer account, which I added as a secondary iCloud account on my laptop.
The same approach works for my personal developer account (on the same laptop). I'm not sure what the difference is that prevents the work account from connecting.

Update
My workaround is to:

  • Continue using the App Center build (for now).
  • Download the building artefact (ipa file).
  • Upload the ipa file using Apple's Transporter app (https://apps.apple.com/us/app/transporter/id1450874784?mt=12)

No one cares :( leaving AppCenter soon.

Are there any alternatives?

No one cares :( leaving AppCenter soon.

Are there any alternatives?

Bitrise with fastlane, until Xcode cloud comes out of beta

Hello everyone, I have the same problem here. Are there any reports of any progress on this issue?

Same issue.
Please address.
Please accept the SMS codes

Here my fixed:

  • Sign in with the apple account into the phone that registered the phone number in the apple account. Check from apple account to make sure that your phone is allowed)
  • In AppCenter, reconnect to the AppStore
  • In phone, a message will be displayed to allow/not allow another device login -> Yes -> 6 digit code will be displayed
    E9A8CB58-F015-4DE8-83F1-401B675C2B7A (2)

03D4FF6C-62E0-4702-BEED-6DE698AF15F0

  • Enter 6 digit code for AppCenter
    Noted: Use 6 digits from Verification Code Dialog, not from your Messages App

Here my fixed:

* Sign in with the apple account into the phone that registered phone number in the apple account

* In AppCenter, reconnect to the AppStore

* In phone, a message will be displayed to allow/not allow another device login -> Yes -> 6 digit code will be displayed

* Enter 6 digit code for AppCenter

The verification code entered is invalid. Make sure your trusted device is logged to iCloud. Two-Factor Authentication via SMS is currently not supported. Enter the valid pop-up two-factor code from your trusted device.

Here my fixed:

* Sign in with the apple account into the phone that registered phone number in the apple account

* In AppCenter, reconnect to the AppStore

* In phone, a message will be displayed to allow/not allow another device login -> Yes -> 6 digit code will be displayed

* Enter 6 digit code for AppCenter

The verification code entered is invalid. Make sure your trusted device is logged to iCloud. Two-Factor Authentication via SMS is currently not supported. Enter the valid pop-up two-factor code from your trusted device.

You must use 6 digit code from the Verification Code dialog not the code from Messenger App otherwise you will get above error

Here my fixed:

* Sign in with the apple account into the phone that registered phone number in the apple account

* In AppCenter, reconnect to the AppStore

* In phone, a message will be displayed to allow/not allow another device login -> Yes -> 6 digit code will be displayed

* Enter 6 digit code for AppCenter

The verification code entered is invalid. Make sure your trusted device is logged to iCloud. Two-Factor Authentication via SMS is currently not supported. Enter the valid pop-up two-factor code from your trusted device.

You must use 6 digit code from the Verification Code dialog not the code from Messenger App otherwise you will get above error

That's what the issue is. <----- see the original suggestion of "It will be great to be able use trusted phone number and got two factor auth via sms or phone call."

Some people do not have, or have access to a device that shows the dialog.

Was this page helpful?
0 / 5 - 0 ratings