mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #357] Cannot register U2F key #203
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#203
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @neoautomata on GitHub (Jan 21, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/357
I'm unable to register a U2F key.
The javascript console log says:
Server side says:
I have set the
DOMAINenvironment variable (includinghttps://but not port443)./app-id.jsonhas the correct contents (and includes port443). I've also setROCKET_PORT=443.The SSL cert is from LetsEncypt and shows as valid. I'm using Chrome.
@dani-garcia commented on GitHub (Jan 21, 2019):
Error code 2 is usually because the URLs don't match. If the url in the app-id.json contains the port, then you need to include the port in the browsers URL for it to work.
Also, the app-id.json contains the same value as the DOMAIN var, so I'm not sure how it's possible for it to show the port in the app-id.json if it's not included in the variable.
@neoautomata commented on GitHub (Jan 21, 2019):
I will try changing to another port and see if that works.
The environment variable doesn't include the port though:
The
app-id.jsondoes:@neoautomata commented on GitHub (Jan 21, 2019):
It does work when I use a different port. I used
4343for bothROCKET_PORTand in theDOMAIN.However, I'd like to run it on the standard port
443. I can't just add:443to the end of the URL since chrome strips it off. It seems like this is being mistakenly added inapp-id.jsoneven though I didn't specify it inDOMAIN.@dani-garcia commented on GitHub (Jan 21, 2019):
I don't see how that could be happening, in the app-id.json we just copy the DOMAIN var there, if the var doesn't have a port then there shouldn't be a port there.
For me. using:
and going to
https://bw.domain.tld/app-id.jsongets me@neoautomata commented on GitHub (Jan 21, 2019):
I am also just as confused, especially since I couldn't find any references to
ROCKET_PORTor443in the code.I had copy-pasted the parts above, and when I just went back and refreshed on
app-id.jsonto make sure I wasn't crazy the file changed to drop the:443. I can only speculate that there was some kind of caching going on since I think I put an explicit port around this time yesterday when I tried it. That issue seems resolved.I can get past the part where it asks for a touch. When I click the save button I hit a different error though:
The UI says:
An error has occurred. U2fErrorServer side it has:
This seems to be Issue 272: U2F registration returns NotTrustedAnchor. Feel free to close this one.
Also, thanks for the prompt help, that was super fast and impressive :-)
@dani-garcia commented on GitHub (Jan 21, 2019):
Great, we can continue in the other thread for that issue.