Skip to content

An example implementation of WebAuthn passkey authentication in a Spring Boot application.

License

Notifications You must be signed in to change notification settings

helioauth/passkeys-api-demo

Repository files navigation

logo

HelioAuth Demo

A passwordless authentication solution for modern web applications

contributors last update forks stars open issues license


📔 Table of Contents

🌟 About the Project

An example implementation of WebAuthn passkey authentication in a Spring Boot application.

screenshot

👾 Tech Stack

Server
Database
DevOps

🎯 Features

  • WebAuthn (passkey) authentication
  • Magic link fallback authentication (work in progress)
  • User dashboard

🔑 Environment Variables

To run this project, you will need to add the following environment variables:

DATABASE_URL - JDBC-compatible database url e.g. jdbc:postgresql://localhost:5432/demodb

RELYINGPARTY_DISPLAY_NAME - The name that shows up on the client when registering/authenticating with WebAuthn, e.g. HelioAuth Demo

RELYINGPARTY_HOSTNAME - The origin (domain) where the application is hosted, e.g. demo.usepasskeys.dev

🧰 Getting Started

‼️ Prerequisites

This project uses Java 22 and Maven

  git clone https://github.com/helioauth/passkeys-api-demo.git

🏃 Run Locally

Go to the project directory

  cd passkeys-api-demo

Install dependencies

  ./mvnw install

Start PostgreSQL server

  docker-compose up -d

Start the demo

  ./mvnw spring-boot:run

👋 Contributing

Contributions are always welcome!

⚠️ License

Distributed under the MIT License. See LICENSE for more information.

🤝 Contact

HelioAuth: https://helioauth.com/

Project Link: https://github.com/helioauth/passkeys-api-demo

💎 Acknowledgements

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy