tmyroadctfig / icloud4j

Other
22 stars 18 forks source link

How to do when two way factor enabled? #1

Open rameshT108 opened 7 years ago

tmyroadctfig commented 7 years ago

You authenticate with the idmsa service, which causes a code to pop up on the device. You then pass that back to the library to complete the two-factor auth.

Check out this area for an example: https://github.com/tmyroadctfig/icloud4j/blob/79d6734a6eed03c685a1f1b8ffe8fb589d351611/src/test/java/tmyroadctfig/icloud4j/ICloudTestUtils.java#L68

rameshT108 commented 7 years ago

It's clear and working fine in my case. I have one more question how can i get list of backups available for one device?

tmyroadctfig commented 7 years ago

To get backups you need to use this project: https://github.com/horrorho/InflatableDonkey

rameshT108 commented 7 years ago

Thanks for the Reply, I am getting error like this after entering PassCode java.lang.IllegalStateException: Failed to verify code: HTTP/1.1 401 Unauthorized at tmyroadctfig.icloud4j.IdmsaService.sendIdmsaCode(IdmsaService.java:192)

rameshT108 commented 7 years ago

Please help me . I'm in deep search

tmyroadctfig commented 7 years ago

You'll need to provide a bit more info on what you're doing. Can you send over a code snippet or something?

briesanji commented 7 years ago

I get same error.. Failed to verify code: HTTP/1.1 401 Unauthorized

vipinbeni commented 5 years ago

I get same error.. Failed to verify code: HTTP/1.1 401 Unauthorized