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

[REQUEST] - Add support for Firefox&KeePassXC-Browser #82

Open
zespere opened this issue Sep 8, 2024 · 4 comments
Open

[REQUEST] - Add support for Firefox&KeePassXC-Browser #82

zespere opened this issue Sep 8, 2024 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@zespere
Copy link
Contributor

zespere commented Sep 8, 2024

I tried using Zen browser(based on firefox 129) and firefox 130 alongside with KeePassXC-browser extension for passkeys and it seems that webauthn_components doesn't support both of them.

I'm using manjaro linux.

Everything worked as it should when i tried sign-ups and sign-ins on official passkeys.io demo.

error:
[warning] [unhandled_message: {PasskAuthWeb.RegistrationLive, {:error, %{"message" => "The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.", "name" => "NotAllowedError", "stack" => ""}}}]

UPDATE: I signed-up to LiveShowy and it works, which is weird because it seems that LiveShowy uses webauthn_components.

Thanks for your work @type1fool

@zespere zespere added enhancement New feature or request triage Needs to be prioritized labels Sep 8, 2024
@type1fool
Copy link
Collaborator

I presume you're getting this error when connecting to a development server on localhost - is that right? Do you see any additional logs in the browser console?

This could be a misconfiguration issue. To find out, could you generate a fresh Phoenix app, add WAC, then run mix wac.install before starting the server? If you're able to use Passkeys on the fresh application, you could compare config and code between the two apps to possibly find an error.

@type1fool type1fool added question Further information is requested and removed enhancement New feature or request triage Needs to be prioritized labels Sep 28, 2024
@zespere
Copy link
Contributor Author

zespere commented Sep 30, 2024

I started fresh phoenix framework app locally and added webauthn_components to it as it is recommended in the docs and all i got is the error i shared previously.

Soon i will to the same again and share the repo on github.

@type1fool
Copy link
Collaborator

...all i got is the error i shared previously.

When you try authenticating with a Passkey again, could you copy the logs/errors from the browser's dev tools? There may be some useful information there.

@zespere
Copy link
Contributor Author

zespere commented Oct 5, 2024

repo: https://github.com/zespere/testpk
error:

DOMException: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. registration_hook.js:80:14
WebAuthn error: DOMException: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. utils.js:12:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants