🐛 Bug Report: Instant Failure logging in to Home Assistant app on iOS #370

Closed
opened 2025-10-08 00:05:29 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @fallenleavesgocrunch on GitHub.

Reproduction steps

Setup Home Assistant behind a caddy security reverse-proxy.
Install the Home Assistant app on iOS
Attempt to add the https address of your Home Assistant

Expected behavior

Home Assistant opens a safari portal to pocket-id to verify login access to the server. Click 'Sign In' and provide passkey, everything works as it does in regular Safari.

Actual Behavior

It opens up a portal with the pocket-id login, I click Sign in, the P icon slides across and turns in to a red X before it's even asked me to verify the passkey with face or fingerprint.

Version and Environment

pocket-id v0.27.2
caddy 2.9 + caddy-security
home-assistant 2025.1.4

Log Output

I couldn't see any way to turn on more debug info for pocket-id to help diagnose this. The caddy logs didn't provide anything exceptional. Is the passkey security context unable to work like that?

Originally created by @fallenleavesgocrunch on GitHub. ### Reproduction steps Setup Home Assistant behind a caddy security reverse-proxy. Install the Home Assistant app on iOS Attempt to add the https address of your Home Assistant ### Expected behavior Home Assistant opens a safari portal to pocket-id to verify login access to the server. Click 'Sign In' and provide passkey, everything works as it does in regular Safari. ### Actual Behavior It opens up a portal with the pocket-id login, I click Sign in, the P icon slides across and turns in to a red X before it's even asked me to verify the passkey with face or fingerprint. ### Version and Environment pocket-id v0.27.2 caddy 2.9 + caddy-security home-assistant 2025.1.4 ### Log Output I couldn't see any way to turn on more debug info for pocket-id to help diagnose this. The caddy logs didn't provide anything exceptional. Is the passkey security context unable to work like that?
OVERLORD added the bug label 2025-10-08 00:05:29 +03:00
Author
Owner

@fallenleavesgocrunch commented on GitHub:

This might not be fixable. To test my sanity I installed keycloak (double entendre) and it too couldn't do login inside the popup portal. It gave an error though "Failed to authenticate by the Passkey." -- this might be a situation where passkey simply cannot work.

@fallenleavesgocrunch commented on GitHub: This might not be fixable. To test my sanity I installed keycloak (double entendre) and it too couldn't do login inside the popup portal. It gave an error though "Failed to authenticate by the Passkey." -- this might be a situation where passkey simply cannot work.
Author
Owner

@stonith404 commented on GitHub:

I'm assuming HA uses a Webview and this won't work unless you would compile the app on your own and add Pocket ID as an associated domain to the app.

Yeah that's a situation where passkeys unfortunately not work.

@stonith404 commented on GitHub: I'm assuming HA uses a Webview and [this won't work](https://developer.apple.com/forums/thread/723273) unless you would compile the app on your own and add Pocket ID as an associated domain to the app. Yeah that's a situation where passkeys unfortunately not work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id-1#370