This example app demonstrates how WebAuthn works using Spring Boot.
Please read Building a WebAuthn Application with Java to see how this app was created.
Prerequisites:
Java 17: This project uses Java 17. If you don't have Java 17, you can install OpenJDK. Instructions are found on the OpenJDK website.
To install this example application, run the following commands:
git clone https://github.com/oktadev/webauthn-java-example.git
cd webauthn-java-example
This will get a copy of the project installed locally.
To install all of its dependencies and the app, run:
./mvnw spring-boot:run
You can now test the application by opening http://localhost:8080
This example uses the following open source libraries:
Please post any questions as comments on the [blog post], or visit our Okta Developer Forums.
Apache 2.0, see LICENSE.