/spring-auth

Tutorial where we learn how to implement a native spring authentication and authorization flow

Primary LanguageJava

Article cover

Spring Java Postgres


About 🔍

In this tutorial we learn how to apply protected routes with jwt authentication and authorization in spring.

Stack 🔧

  • Java 17
  • Spring-boot 3.1.5
  • JWT
  • Hibernate/JPA
  • PostgreSQL

How to run 🏃

1 - Make sure docker is running and start the database with docker compose:

$ docker compose up

2 - Run the application:

$ mvn spring-boot:run

Did you find any bug or wanna tell me something? Let me know in my Twitter/X.