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

cannot register fido key when webapp is hosted on internet, but project work fine on localhost #14

Closed
kellysacault opened this issue May 30, 2021 · 3 comments

Comments

@kellysacault
Copy link

Hi Damien,
I have tried your nice project. I have changed one thing on the fido2mfa.cshtml :

the value is set with the authenticatd user email instead of his username.

The project runs fine on my local host (iss express of visual studio 2019) with the below app settings :
"Fido2": {
"ServerDomain": "localhost",
"ServerName": "WebAuth Fenix",
"Origin": "http://localhost:44398",
"TimestampDriftTolerance": 300000,
"MDSAccessKey": null
}
I can register my fido2 yubikey, log in with it and unregistered it.

But when the test app (.Net 5 with razor pages) is deployed on internet (hosted at somee.com), I cannot register my fido2 yubikey at fido2mfa.cshtml.
I have tried the below settings, but I still get the error :
FIDO2_REGISTRATION_ERROR, exception:TypeError: Cannot read property 'create' of undefined

"Fido2": {
  "ServerDomain": "sipffenix.somee.com",
  "ServerName": "WebAuth Fenix",
  "Origin": "http://sipffenix.somee.com",
  "TimestampDriftTolerance": 300000,
  "MDSAccessKey": null
}

I have looked at the files 'MfaFido2RegisterController.cs' and 'mfa.register.js'.... Everything seems OK. I have not found something related to : "property 'create' of undefined"

Any idea about this bug ?

@damienbod
Copy link
Owner

@kellysacault I'll look into this, I have not encountered this so far. Will do a test deployment, I have a busy week, could be a few days before I get around to this

Greetings Damien

@kellysacault
Copy link
Author

kellysacault commented Jun 1, 2021 via email

@pvh-archifact
Copy link

I am not sure but seems on the Origin its using HTTP instead of HTTPS

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

3 participants