A simple self-contained demo server supporting multiple devices per user. The central part is the Resource class.
git clone https://github.com/Yubico/java-u2flib-server.git
./gradlew run
Note
|
Since U2F requires a HTTPS connection, this demo server uses a dummy certificate. This will cause your browser to show a warning, which it is safe to bypass. |
Why do I get error code 2?
You are accessing the server using a URL that does not match the server’s
App ID.
The App ID is set to https://localhost:8443
by default, but you can change this in the
Resource
class.