Skip to content
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

Apple ID is locked after signing in: Unable to Sign In #360

Closed
wvabrinskas opened this issue Feb 23, 2023 · 29 comments
Closed

Apple ID is locked after signing in: Unable to Sign In #360

wvabrinskas opened this issue Feb 23, 2023 · 29 comments
Labels
bug Something isn't working

Comments

@wvabrinskas
Copy link

Describe the bug
I am unable to sign into my apple id. My apple ID has 2FA and when i go to sign into Xcodes with my password, I get the proper popups for the 2FA code but then Xcodes seems to fail to login. This worked before.

To Reproduce

  1. Login with an account with 2FA.
  2. Observe error

Expected behavior
Successful log in
Screenshots

image

Version

  • OS: 13.2.1
  • Xcodes: 1.9.0
@wvabrinskas wvabrinskas added the bug Something isn't working label Feb 23, 2023
@MattKiazyk
Copy link
Contributor

Hi @wvabrinskas

That url in the error gives - https://support.apple.com/en-ca/HT212522 which says If you see this message after attempting to sign in with a new device or web browser, wait for at least 24 hours, then try to sign in again.

I'm guessing your Apple ID is locked for a bit? If it doesn't work on Xcodes, another way to test is to log into developer.apple.com and make sure it works there.

Thanks

@wvabrinskas
Copy link
Author

Ah I did reset my password. What was weird was Xcodes is what triggered the lock actually... so weird

@dhinakg
Copy link

dhinakg commented Feb 23, 2023

I got my account locked by something else, but I'm also experiencing this issue. I changed my password and while I can log in on the developer page, I can't log in to Xcodes nor the thing that got me locked in the first place. Both show me this error but I still get the 2FA code prompt on my devices anyway. Will wait 24 hours and see what happens

@carmichaelalonso
Copy link

I am experiencing the same issue, but it seems that signing in through Xcodes caused the account to be locked. I tried with two separate Apple IDs (personal and work) and both were locked after trying to sign in this way.

Worth noting that I was trying to sign in through a build server in a cloud data centre, which could also be a reason why the account was locked. Just sharing my experience here in case it helps narrow things down.

@wvabrinskas
Copy link
Author

Yeah it seems however Xcodes is authenticating is causing accounts to be locked. At least that's what happened with me, and it seems a few others

@MattKiazyk MattKiazyk changed the title Unable to Sign In Apple ID is locked after signing in: Unable to Sign In Feb 23, 2023
@MattKiazyk
Copy link
Contributor

Thanks everybody.. it happens to me too. I'll see what i can find. Hopefully it's just a temporary thing.

image

@MattKiazyk
Copy link
Contributor

Update: After getting locked out of the Apple ID, via my Mac, I was forced to reset my Apple ID password (via my phone). Xcodes seems to be working as it should and I can now download normally.

Is this what everyone else is seeing?

@carmichaelalonso
Copy link

Mixed results here (unfortunately)

After getting locked out and resetting my password, I'm seeing the message @wvabrinskas is getting in his original post (-36607) on the build server I mentioned. I tried it again now and still getting the -36607 error. I've tried restarting Xcodes.app, tried using xcodes in the CLI, tried restarting the machine, but nothing solves it.

On my personal machine, it worked earlier today without any errors and I was able to download Xcode 14.2. However I just tried logging in again now and I'm getting the same error.

Thanks for looking into it!

@wvabrinskas
Copy link
Author

Update: After getting locked out of the Apple ID, via my Mac, I was forced to reset my Apple ID password (via my phone). Xcodes seems to be working as it should and I can now download normally.

Is this what everyone else is seeing?

Will try again. I'm almost afraid to get locked out again. I have so many devices 😆

@MattKiazyk
Copy link
Contributor

Will try again. I'm almost afraid to get locked out again. I have so many devices 😆

Yeah I hear you!

The password I had for my Apple ID I had been using for a really long time. (I probably shouldn't say that). Wondering if that had anything to do with it? Perhaps Apple cracking down?

@MattKiazyk
Copy link
Contributor

It's not just Xcodes - Fastlane is having similar issues! fastlane/fastlane#21071

@MattKiazyk
Copy link
Contributor

Via the fastlane issue above, users are also getting locked out of their accounts using Xcode archiver!

Happy Thursday!

@carmichaelalonso
Copy link

Nice find, happy Thursday indeed :)

@MattKiazyk MattKiazyk pinned this issue Feb 23, 2023
@ptrkstr
Copy link

ptrkstr commented Feb 23, 2023

I used 3 different apple accounts and all were locked out the moment I attempted to sign into Xcodes.

@wvabrinskas
Copy link
Author

Okay so then I won't be trying lol

@wvabrinskas
Copy link
Author

It's not just Xcodes - Fastlane is having similar issues! fastlane/fastlane#21071

Woah wild. I wonder what's going on...

@dhinakg
Copy link

dhinakg commented Feb 23, 2023

Spent my afternoon digging through this, here's notes on the new hashcash addition: fastlane/fastlane#21071 (comment)

@MattKiazyk
Copy link
Contributor

@dhinakg I saw that - thanks for all your work! I'm looking at implementing it.

Do you happen to have some of those values so that I can write a proper test? I was trying to follow it through on the website, but I'm not seeing any header with the final x-apple-hc header value

@dhinakg
Copy link

dhinakg commented Feb 24, 2023

X-Apple-HC-Bits: 10
X-Apple-HC-Challenge: bb63edf88d2f9c39f23eb4d6f0281158

With this case, if you set the timestamp to 20230224001754, you'd construct 1:10:20230224001754:bb63edf88d2f9c39f23eb4d6f0281158::COUNTER, and if you start from 0 you should end up at the counter being 866, so you'd set X-APPLE-HC to 1:10:20230224001754:bb63edf88d2f9c39f23eb4d6f0281158::866

X-APPLE-HC is set on the request to https://idmsa.apple.com/appleauth/auth/signin?isRememberMeEnabled=true in a browser:

image

@MattKiazyk
Copy link
Contributor

@dhinakg I'll prefix with I think I'm doing something wrong but I tried to implement the hashcash algorithm with your inputs and I'm not getting the same counter as what you have.

#361

So I'm getting 1:10:20230224001754:bb63edf88d2f9c39f23eb4d6f0281158::1092 instead of 866. If you have some time to perhaps see what is wrong with my code?

@joshdholtz
Copy link

@MattKiazyk There is logic for this in this fastlane PR 👉 fastlane/fastlane#21073

Appfigures was nice enough to share the spec with us 😊

@alexcroox
Copy link

alexcroox commented Feb 24, 2023

I was locked out of my Apple account yesterday when using "login with apple" on a random website, never happened before. I'm guessing something went live to cause that across all platforms and integrations.

@MattKiazyk
Copy link
Contributor

Thanks @joshdholtz and Appfigures!

Work has me busy today but I hope to get the PR up this weekend!

@wvabrinskas
Copy link
Author

I was locked out of my Apple account yesterday when using "login with apple" on a random website, never happened before. I'm guessing something went live to cause that across all platforms and integrations.

that's wild

@fbara
Copy link

fbara commented Feb 24, 2023

Same thing just happened to me when trying to use Xcodes. I should've checked here first, now I have to re-login to all my Apple devices and apps that use iCloud.

@MattKiazyk
Copy link
Contributor

Hey Everybody

Implemented the fix in #361

If somebody would be so kind as to download that PR and see if that works?

Note: If your account is locked already this doesn't FIX your account. You must unlock your account and from that point forward the Xcodes login won't lock your account. 🤞

@wvabrinskas
Copy link
Author

@MattKiazyk trying now

@wvabrinskas
Copy link
Author

@MattKiazyk worked a treat!! Thank you so much

@shimastripe
Copy link

Thanks for the great improvements! Does this need to be addressed for the CLI tool as well? https://github.com/RobotsAndPencils/Xcodes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants