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

Schema verification should be allowed HTTP for localhost #656

Open
albanx opened this issue Oct 28, 2024 · 3 comments
Open

Schema verification should be allowed HTTP for localhost #656

albanx opened this issue Oct 28, 2024 · 3 comments

Comments

@albanx
Copy link

albanx commented Oct 28, 2024

While testing in localhost the Verification of the response fails because it sends http://localhost to the server.

I think the following check should allow HTTP for localhost dev envs:

$scheme === 'https' || throw AuthenticatorResponseVerificationException::create(

@Spomky
Copy link
Contributor

Spomky commented Oct 28, 2024

As per the specification, Webauthn only works with secure connections, so HTTP is not allowed.

@albanx
Copy link
Author

albanx commented Oct 28, 2024 via email

@albanx
Copy link
Author

albanx commented Oct 28, 2024

Also if the specification forbids localhost, then that should be handle directly by the WebAuthN API of the browser, I believe an extra check might not be necessary

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