An open API service indexing awesome lists of open source software.

https://github.com/m1guelsb/spring-auth

Tutorial where we learn how to implement a native spring authentication and authorization flow
https://github.com/m1guelsb/spring-auth

java jwt spring-boot spring-security

Last synced: 11 months ago
JSON representation

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

Awesome Lists containing this project

README

          



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:
```bash
$ docker compose up

```
2 - Run the application:
```bash
$ mvn spring-boot:run
```

>Did you find any bug or wanna tell me something?
Let me know in my [Twitter/X](https://x.com/m1guelsb).