mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 07:42:58 +03:00
🐛 Bug Report: failed onboarding admin user with: "Error #01: Error validating origin" #433
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 @dariopb on GitHub.
Reproduction steps
Started the docker container with a tls endpoint (valid dns name and certificate/key). Went to the
/login/setupand created successfully a passkey on a pixel 7 device.Expected behavior
Passkey is saved in the backend.
Actual Behavior
After the key was created in the device and the popup says the passkey has been "saved", clicking the ok button results in an error message: "something went wrong".
Logs shows:
the UI shows not passkeys.
@dariopb commented on GitHub:
Could this be related with the fact that my PUBLIC_APP_URL is
https://xxxxx.xxx.xxxwhen the real url is ehttps://xxxxx.xxx.xxx:7443(notice the explicit port)?If I try to set PUBLIC_APP_URL and include the port (7443) then it fails right away trying to even create the passkey.
@dariopb commented on GitHub:
Perfect, using that image I was able to onboard new keys without a problem. Thank you! Are those changes already in the
mainbranch?One small (unrelated) detail: looks like if the auth/passkey creation flow is interrupted (like in the case before), there is already state that is in the browser (probably the
access_tokencookie?) and trying to restart the onboarding via/login/setupwill fail. Removing the cookie and all the local storage for the url fixes the issue though. Maybe the very first token could have some state so could be ignored if retrying the onboard operation?@stonith404 commented on GitHub:
I've released the fix in
v0.22.0and it should be on the main branch now too.I'll look into the issue with the cookies in the setup, thanks.
@stonith404 commented on GitHub:
Thanks for reporting this. The
PUBLIC_APP_URLmust be exactly the URL where you access Pocket ID, so you have include the port.What I've noticed that there is a bug if the
PUBLIC_APP_URLincludes a port. This should be fixed in the development imagestonith404/pocket-id:development. Would you mind to test this image and let me know if you now can add passkey successfully?