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

Feature Request - Yubikey support #209

Open
thenoid opened this issue Sep 29, 2023 · 7 comments
Open

Feature Request - Yubikey support #209

thenoid opened this issue Sep 29, 2023 · 7 comments

Comments

@thenoid
Copy link

thenoid commented Sep 29, 2023

When you enable yubikeys on your icloud account it disables the 6 digit code.

The integration keeps asking to be reconfigured with a new 6 digit code but i am unable to supply it with one.

Tried putting in the code generated by the yubikey, but the integration kicks back an error about the code not being correct.

Any help would be appreciated.

@gcobb321
Copy link
Owner

iCloud Web Services does not support hardware keys so they will not work with iCloud3

@thenoid
Copy link
Author

thenoid commented Sep 29, 2023

When you say "icloud web services" do you mean just icloud.com?

@gcobb321
Copy link
Owner

Partially. iCloud3 uses a heavily modified version of the Python program pyicloud.py to get device, location and authentication data from iCloud issuing https get and post transactions to the following endpoints:
- self.HOME_ENDPOINT = f"https://www.icloud.com"
- self.SETUP_ENDPOINT = f"https://setup.icloud.com/setup/ws/1"
- self.AUTH_ENDPOINT = f"https://idmsa.apple.com/appleauth/auth"

You can see the requests and response traffic between iCloud3 and iCloud by selecting Configure Settings > Page 2 > Format Parameters screen, set Log Level = Rawdata-Auto Reset and restarting iCloud3.

@thenoid
Copy link
Author

thenoid commented Sep 29, 2023

Okay, cause icloud.com does fully support webauthn/FIDO/yubikey - I'll file a bug upstream with pyicloud.

@gcobb321
Copy link
Owner

Good luck with that- pyicloud isn’t really supported. I’m not really a network guy and would welcome any assistance in providing support for it. My version of that code is in icloud3/support/pyicloud_ic3.py.

@thenoid
Copy link
Author

thenoid commented Sep 29, 2023

haha, like every other opensource project these days :(

I'm pretty busy at the moment, but sounds like a good winter project.

@gcobb321
Copy link
Owner

Let me know when you are ready.

@gcobb321 gcobb321 changed the title Yubikey support Feature Request - Yubikey support Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants