Spring Boot Microservices (Part 3): JWT Authentication & Secure API Endpoints

preview_player
Показать описание
Welcome to Part 3 of the Spring Boot Microservices series! In this video, we dive deep into JWT Authentication and show you how to secure your microservices API with token-based authentication. You’ll learn how to:

Set up JWT for user authentication and authorization.
Generate secure access tokens on login.
Validate JWT tokens to protect your API endpoints.
Step-by-step code explanation for real-world implementation.
This tutorial builds on the foundation of Parts 1 and 2, where we set up PostgreSQL, Docker, and Eureka for microservices. Now, it’s time to add robust security to your application!

Make sure to watch the previous parts:
Part 1: PostgreSQL & Docker in Minutes
Part 2: Setting Up Eureka Server & Connecting Authorization Service

Subscribe and stay tuned for the next part, where we continue building a complete microservices architecture!

🔔 Subscribe for more tutorials on Spring Boot, microservices, and API security.

#SpringBoot #Microservices #JWT #Authentication #API #Security #JavaDevelopment #SpringSecurity #Eureka
Рекомендации по теме
Комментарии
Автор

If it is necessary to have a separate entity user in another microservice, but there are the same fields (id, username, email, password) but also there are additional fields and logic that does not concern authentication/authorization, that is, I do not want to connect the security logic and the usual user logic. Is it necessary to implement a conditional filter in api-gateway that will filter requests based on the role of the user (and also for unauthorized users)? Are there any resources on such a project architecture?

disamurkeev
visit shbcf.ru