icloud4j icon indicating copy to clipboard operation
icloud4j copied to clipboard

How to do when two way factor enabled?

Open rameshT108 opened this issue 8 years ago • 8 comments

rameshT108 avatar Nov 14 '16 13:11 rameshT108

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

tmyroadctfig avatar Nov 14 '16 20:11 tmyroadctfig

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?

rameshT108 avatar Nov 17 '16 05:11 rameshT108

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

tmyroadctfig avatar Nov 17 '16 06:11 tmyroadctfig

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 avatar Nov 17 '16 06:11 rameshT108

Please help me . I'm in deep search

rameshT108 avatar Nov 17 '16 06:11 rameshT108

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

tmyroadctfig avatar Apr 28 '17 04:04 tmyroadctfig

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

briesanji avatar Sep 06 '17 10:09 briesanji

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

vipinbeni avatar Jun 17 '19 05:06 vipinbeni