Auth0 Springboot Authentication Library

June 8, 2026 ยท View on GitHub

Auth0 API SDK for securing your Java API Server using tokens from Auth0

Build Status Java Version License

A comprehensive Java library for Auth0 JWT authentication with built-in DPoP (Demonstration of Proof-of-Possession) and Multi-Custom Domain (MCD) support. This project provides Spring Boot integration for secure API development.

๐Ÿ—๏ธ Architecture Overview

This repository contains multiple modules designed for different use cases:

Core Modules

ModuleDescriptionJava Version
auth0-springboot-apiSpring Boot auto-configuration and filtersJava 17+
auth0-springboot-api-playgroundWorking example applicationJava 17+

Module Relationship

auth0-springboot-api (Published)
    โ†ณ bundles auth0-api-java (Internal - not published separately)
    โ†ณ examples in auth0-springboot-api-playground

Getting Started

If you're building a Spring Boot application, use the Spring Boot integration:

<dependency>
    <groupId>com.auth0</groupId>
    <artifactId>auth0-springboot-api</artifactId>
    <version>1.0.0-beta.1</version>
</dependency>

๐Ÿ‘‰ Get started with Spring Boot integration โ†’

For Core Java Applications

It provides:

  • JWT validation with Auth0 JWKS integration
  • DPoP proof validation per RFC 9449
  • Multiple Custom Domain (MCD) support โ€” static domain lists, or dynamic resolution at request time
  • Extensible caching โ€” pluggable AuthCache interface for distributed backends (Redis, Memcached)
  • Flexible authentication strategies

๐Ÿ“š Documentation

๐Ÿ› ๏ธ Development

This project uses Gradle with a multi-module setup:

# Build all modules
./gradlew build

# Build module
./gradlew :auth0-springboot-api:build

# Run tests
./gradlew test

# Run playground application
./gradlew :auth0-springboot-api-playground:bootRun

๐Ÿ“ฆ Publishing

Spring Boot integration module is published as a public artifact:

ModuleGroup IDArtifact IDVersionStatus
auth0-springboot-apicom.auth0auth0-springboot-api1.0.0-beta.1๐Ÿ“ฆ Published

The core library (auth0-api-java) is bundled as an internal dependency within the Spring Boot module and is not published separately.

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make changes in the appropriate module
  4. Add tests for new functionality
  5. Ensure all tests pass: ./gradlew test
  6. Ensure your commits are signed
  7. Submit a pull request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ†˜ Support


๐ŸŽฏ New to Auth0? Sign up for a free Auth0 account โ†’