mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:53:00 +03:00
🐛 Bug Report: Instant Failure logging in to Home Assistant app on iOS #370
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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.
@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.