Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Latest commit

 

History

154 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Security 6 and Auth0 Integration sample

build

What is this?

This is a sample project that demonstrates how to use the Auth0 IDP service to protect RESTful APIs written in Spring Web MVC.

If you are interested in the custom JWT authentication with the Spring WebMvc stack, check spring-webmvc-jwt-sample for more details.

If you are interested in the custom JWT authentication with the Spring WebFlux stack, check spring-reactive-jwt-sample for more details.

Guide

Prerequisites

Make sure you have installed the following software:

  • Java 17 +
  • Apache Maven 3.x
  • Docker

Build

Clone the source code from GitHub.

git clone https://github.com/hantsy/spring-security-auth0-sample

Open a terminal, switch to the root folder of the project, and run the following command to build the whole project.

docker-compose up postgres // start up a postgres
mvn clean install // build the project

Run the application.

mvn spring-boot:run
// or from command line after building
java -jar target/xxx.jar

Contribution

Any suggestions are welcome, filing an issue or submitting a PR is also highly recommended.

References

About

Spring Security 5 with OAuth2/OIDC and Auth0 integration example

Topics

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages