cedarcode / webauthn-rails-demo-app

Rails app demonstrating a WebAuthn password-less login
https://webauthn.cedarcode.com
Apache License 2.0
99 stars 39 forks source link

Unspecified expected origin #85

Closed Faisal-nfl closed 5 years ago

Faisal-nfl commented 5 years ago

I tried to run it locally with ngrok but on signup it crashes with error "Unspecified expected origin" on line# 42 of RegistrationsController

render json: { status: "forbidden" },status: :forbidden unless auth_response.verify(str_to_bin(user.current_challenge))

grzuy commented 5 years ago

Hi,

You need to $ cp .env.example .env.

grzuy commented 5 years ago

That setup step was missing in the README, just added (https://github.com/cedarcode/webauthn-rails-demo-app/commit/d59b9969e5e58a32661810fcc83b535a33bb0e14).

Faisal-nfl commented 5 years ago

thanks

grzuy commented 5 years ago

Thanks for reporting!