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

Localhost doesn't work as expected #20

Closed
Naggertooth opened this issue Dec 13, 2019 · 4 comments
Closed

Localhost doesn't work as expected #20

Naggertooth opened this issue Dec 13, 2019 · 4 comments

Comments

@Naggertooth
Copy link

+1

Firefox 71.0 + node v12.13.1 + Linux Mint 19.2

Developers, your demo site works for me fine but this demo from localhost:3000 - nothing happens. I see login form, i do register -> fill form -> submit -> i see login page again -> submit name -> i see login page and so on.

In development tools in Net i see "304" GET responses for each request only... Everywhere...

Originally posted by @Perlover in #19 (comment)

@Naggertooth
Copy link
Author

That's because you need to run it on https
I m using heroku for fast tests

@Perlover
Copy link

Perlover commented Dec 13, 2019

This code will not work anyway: #21

@forevermatt
Copy link

If you take the static/js/webauthn.auth.js and routes/webauthn.js files from the "completed-demo" branch and copy/paste them into the latest "master" branch's version of the files, the application then can work.

I used traefik to get https for local development work, using a Docker container running traefik and a separate Docker container running this webauthn-demo code (using the node:6 Docker image). Once I also updated the webauth-demo config.json file's "origin" to match the domain name I have aimed at my traefik container (with protocol, without trailing slash after domain name), the webauthn-demo works.

@Avec112
Copy link

Avec112 commented Nov 11, 2020

Kudos to forevermatt because he has the solution.
The two javascript files is not complete in master branch.

However branch complete-demo works fine. Just do git checkout completed-demo

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

4 participants