Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

corbado/example-passkeys-java-spring-boot

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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 to create and configure a project in the Corbado developer panel.

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:

./mvnw spring-boot:run

You can access the server via http://localhost:8080/

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.