Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/corbado/example-passkeys-java-spring-boot
Java Spring Boot repository of a sample app that offers passkey authentication.
https://github.com/corbado/example-passkeys-java-spring-boot
faceid fido2 java java-spring passkey passkeys spring spring-boot touchid webauthn
Last synced: 2 months ago
JSON representation
Java Spring Boot repository of a sample app that offers passkey authentication.
- Host: GitHub
- URL: https://github.com/corbado/example-passkeys-java-spring-boot
- Owner: corbado
- License: apache-2.0
- Created: 2023-09-14T06:58:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-26T05:50:15.000Z (3 months ago)
- Last Synced: 2024-10-27T03:49:12.116Z (3 months ago)
- Topics: faceid, fido2, java, java-spring, passkey, passkeys, spring, spring-boot, touchid, webauthn
- Language: Java
- Homepage: https://www.corbado.com/passkeys/java-spring
- Size: 172 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.adoc
- License: LICENSE.txt
Awesome Lists containing this project
README
# Java Spring Boot Passkey Example
This is a sample implementation of a Java Spring Boot application that offers passkey authentication. For simple passkey-first authentication, the Corbado UI component is used.
Please see the [full blog post](https://www.corbado.com/blog/passkeys-java-spring-boot) to understand the detailed steps needed to integrate passkeys into Java Spring Boot apps.
## File structure
```
├── complete
| ├── src/main
| | ├── java/com/corbado/springboot
| | | ├── FrontendController.java # Main controller which renders the HTML templates
| | |
| | └── resources
| | ├── application.properties # Contains the environment variables
| | └── templates
| | ├── index.html # Login page with the Corbado UI component
| | └── profile.html # Profile page with user information
| └── pom.xml # Contains info about the project and implementation details
```## Prerequisites
Please follow the steps in [Getting started](https://docs.corbado.com/overview/getting-started) to create and configure
a project in the [Corbado developer panel](https://app.corbado.com/signin?framework=Java-Spring&technology=passkeys#register).Rename `complete/src/main/resources/applications.properties.example` to `complete/src/main/resources/applications.properties` and paste your Corbado project ID and api secret.
## Usage
Then, you can run the project locally by executing the following command inside the `/complete` folder:
```bash
./mvnw spring-boot:run
```You can access the server via http://localhost:8080/