-
Notifications
You must be signed in to change notification settings - Fork 62
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
2FA not working #46
Comments
Hello @maximushugus , could you please try out the authentication with Biemster's project. This all based on this. If this will work I can dig deeper. Kind Regards, |
Ok, so here is what I did :
Here is my output :
At this point I do not receive SMS nor I have a prompr on my MacOS VM for a verification code as when I try to connect to icloud.com for exemple. |
Ok, then it seems to be more of an issue with the account rather than with the code from the project. Can you possibly create an additional Apple account (which can also use the same phone number) and try again? |
I tried but it didn't work.
|
The behavior is strange, and I'm afraid I can't really help further. Otherwise, I would recommend removing everything and starting fresh. You can check if the Anisette server is running correctly by accessing the URL. There, you should see a JSON. |
The IP looks wrong to me. Are you sure you setup mh-network correctly? |
@supaeasy Anisette seems to be working properly because if I do :
Also when lanching macless-haystack, if I check the logs of anisette I see :
And a response so the 2 containers are communicating |
When lauching macless-haystack I see a strange behavior, maybe this is related :
Here is what is strange :
|
The output is very strange and each line should be there only once. |
Yes it's strange, because as you can see each line appears only once until I give my password. Then you can see two lines for 2FA.. |
Maybe the architecture is the issue, although there is no reason for it. I also have my endpoint running on an Oracle Free Tier, but with x86. Output of It works without problems since weeks. It is really hard to help you here. Have you can tried to change your terminal application for the ssh-session? |
Hi, @dchrist. I also encountered the same problem. After submitting 2FA it succeeded, but then kept asking for a new 2FA auth. |
Same problem |
same issue |
Hello @YupengLai4 ,
There is no need to open any port. Your output looks like it works in general. Could you try to register your device with Biemsters version . If this will work, I can go deeper or you can transfer the auth.json to macless-haystack. |
Thanks for your response! I tried both macless-haystack and the Biemster one but unfortunately the issue persisted :( |
Then I think it is a problem with your account (Apple-ID). Maybe you can create a new one and try again. Some accounts work while others don't, but nobody has really figured out why that is yet. |
I had the same issue, as @dchristl mentioned the culprit was in the Apple ID account. I didn't get a 2FA SMS because the Apple ID was using an outdated phone number.
|
2FA works for me, it sends out sms |
Hi guys, Still does not work for me. When asking for 2FA, I receive no message or device alert. What is weird, is that any code that I enter (correct or incorrect one, like 0000) the system always says "2FA successful" and then start procedure again asking me Apple ID again. Do you have any clue what I'm doing wrong ? Thanks a lot |
What's the tail of your console look like? I was wondering how to get SMS 2FA after I added an iPhone and apple prefers device alert on website. |
I would like to help, but I cannot reproduce the double output issue. I have tried it on x86 (Linux, various derivatives) and on Armv8, and I always receive only one prompt for SMS2FA. Unfortunately, I do not have a Mac (which is also the reason for the project ;) ), so I cannot test it here. Statements like "I have the same problem" do not really help here. I need at least the host OS and which shell is being used, to narrow down the error.
That is the same thing the container is doing. Normally it should work, but you can also follow my instructions and try again. Although I don't think the errors are related (Apple's account management is extremely opaque, determining which account works and which doesn't), it might help to narrow down the issue. |
Sorry, I was on the go, so I couldn't provide more informations. the code for running it local gives me also an error. :(
|
Thank you for your answer. I'm using several Debians or Ubuntu Server, because this is my preferred system. I will install a fresh one and retry it.
This will be normally imnstalled by pip install --no-cache-dir -r requirements.txt. Was there an error by this command? Are there multiple python installations on your system? Alternatively you can try |
I was only able to replicate the problem by entering an incorrect 2FA code or if Apple didn't accept it. I believe the issue is likely related to the account, as usual. I've added some additional logging and better error handling to the dev branch to narrow down the error. For this, it's best to reset everything and start fresh. The 3rd command just needs to be slightly modified (different tag of the container):
The entire requests and responses to Apple are being outputted. At least this way, we might be able to deduce the actual problem. |
macless-haystack/endpoint/mh_endpoint.py Line 98 in 335675d
This line is where he hardcodes it to 'sms' , you'll have to edit it inside the Docker container, change it to 'trusted_device'
|
I stopped the container, changed the line, rerun it and I'm still not getting the Token =( |
Why don't you simply add a mobile number to your account? |
been there, done that. |
I'm having the same issue. I tried the patch @JJTech0130 suggested but still didn't get a code. I was able to log in by cloning https://github.com/biemster/FindMy, pip installing |
The one thing that I see is that we assume you always want to send the SMS to the first phone number registered to the account: you don't happen to have multiple phone numbers attached to your account, do you? |
I can't speak for others but I have exactly one phone number on my account. |
Is it possible for any of you to login at https://appleid.apple.com/ and manually select the sms as second factor? Does this text reach you? |
Personally, I can login on icloud.com and manually select SMS (saying "I didn't receive the code") and yes, I can get the SMS right. But not from |
i also tried on my ubnutu vps server i dont get the 2FA code SMS. |
@a-camacho: |
here is the log:
|
Thanks for the log @mg8x, but it is not the other branch, like suggested. Nevermind, this is in the latest version since today. It seems that some accounts simply not work and I don't know really why. The current workaround is to register it with bimester's project (described here) and copy the auth.json to this project. |
I dont know but i think the problem is im from middle east and my account registered there and my linux vps is in Germany so this might be the problem. Thank you i will try the solution you have suggested. |
just now tried the bimester's it was same i didnt get any sms. i will try later with another apple id. thank you for your hard work |
You should try with trusteddevice, if you have a real Apple device. |
i will try it later. it would be great if it works on my VPS bcz i'm planning to develop a telegram bot for the reports(its too easy. and i would like to contribute to this project for the bot if you wish) and i think its better for getting notified. |
im becoming elektronomia sky high, my 2FA setting isn't work lmao. |
I am currently facing the same issue, should i show log as well? |
Only if you don't get the message: |
i after success 2FA with sms, but my apple id is blocked why ? log: 2024-04-30 10:01:46,307 - INFO - 2FA successful
|
@ramenaru |
no I didn't use any VPN, or kinda like that. that's just say try adding a credit card, but my apple account is already have some credit card. Im from southeast Asia is that any related problem to my region ? or any suggest ? |
yet another person who doesn't receieve an sms from apple (phone number registered (android phone, if that mattters), 2FA enabled, no vpn is used.. tried ... christld/macless-haystack:latest-dev - no luck ;-( |
No 2FA code is received here either |
If all the tips in the FAQ don't help, then only Apple knows why the accounts aren't working. Sorry, there's nothing I can do here, so I'm closing the issue. |
Can someone explain how to do this if we are able to login with 2FA to https://appleid.apple.com/account/manage, but not with macless-openhaystack ? |
I am having the exact same issue and am very frustrated this has not been resolved. I also have sms set up for 2fa. This still has not been resolved? I was doing my own research and everything I found pointed to here as the easiest way to set things up.
|
I have an apple account with 2FA enabled made for this project. I was already using openhaystack on a MacOS VM.
I was able to set up the docker containers.
But after lanching the docker with
docker run -it --restart unless-stopped --name macless-haystack -p 6176:6176 --volume mh_data:/app/endpoint/data --network mh-network christld/macless-haystack
and login with my appleID and password, it keeps asking for 2FA.I don't receive SMS when it asks for 2FA so I launched my MacOS VM and on settings I clicked on "verification code", so I get a 6 digit code. But putting this one doesn't do the trick and it keeps asking for 2FA.
I tried connecting to icloud.com, and requesting my 2FA via SMS, and not putting this code in my browser for icloud.com but instead putting when macless-haystack asks but the same problem, it keep asking for 2FA.
Does someone know why ?
The text was updated successfully, but these errors were encountered: