Securing Spring Boot Microservices with JWT and Redis
Introduction to Application Security
Spring Security is a powerful framework designed to handle authentication and authorization within Java applications. In modern web architectures, security primarily revolves around two core concepts:
Authentication (AuthN): Verifying the identity of a user. This typically involves validating credentials su ...
Posted on Wed, 05 Aug 2026 16:48:49 +0000 by Templar
Implementing JWT-Based Authentication and Authorization with Spring Security
This guide provides a comprehensive walkthrough for building robust authentication and authorization mechanisms using Spring Security with JWT tokens, Redis session storage, and database-backed user management.
Core Concepts of Access Control
Any system involving user participation requires access control mechanisms as part of its security arch ...
Posted on Sat, 25 Jul 2026 16:21:40 +0000 by THW
Configuring AuthenticationManager in Spring Security 5.7+ Without WebSecurityConfigurerAdapter
With Spring Security 5.7.4, the framework has depercated WebSecurityConfigurerAdapter, requiring develoeprs to adopt new configuration patterns. When implementing custom authentication filters that extend UsernamePasswordAuthenticationFilter and override the attemptAuthentication method, obtaining an AuthenticationManager instance becomes chall ...
Posted on Thu, 23 Jul 2026 16:31:54 +0000 by RamboJustRambo
Implementing Stateless Authentication and Role-Based Access Control with Spring Security
Core Concepts and Architecture Overview
Spring Security operates as a comprehensive security framework within the Spring ecosystem. Compared to alternatives like Apache Shiro, it offers a broader feature set and a more extensive community. While lightweight applications often favor Shiro for its simplicity, enterprise-grade systems typically re ...
Posted on Sat, 11 Jul 2026 16:02:50 +0000 by PHPBewildered
Implementing Spring Security Password Flow in a Project
The overall framework is spring-cloud-alibaba-nacos + spring-security + jwt + redis.
Authorization Server
a. pom.xml for the Authorization Server
<!-- Spring Security, OAuth2, and JWT -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-oauth2</artifactId>
...
Posted on Thu, 18 Jun 2026 17:49:25 +0000 by tachekent
Handling Authentication Failures in Spring Security with Custom Error Mapping
When implementing form-based authentication in Spring Security, it's essential to provide meaningful feedback to users upon login failure. By default, Spring Security stores the AuthenticationException in the request scope before forwarding to the configured failure URL. This enables custom error handling logic in the controller.
Security Confi ...
Posted on Sun, 14 Jun 2026 17:21:42 +0000 by peranha
Implementing Stateless Authentication with Spring Security and JWT
This guide explores how to implement custom authentication and authorization mechanisms using Spring Security combined with JWT tokens. The approach enables stateless authentication suitable for modern distributed applications and microservices architectures.
--- 1. Understending Spring Security's Built-in Authentication Flow
Before implementin ...
Posted on Sat, 13 Jun 2026 17:00:23 +0000 by crochk
Integrating Spring Security with Spring Boot: A Comprehensive Guide
Environment Setup
JDK version: 17
Build tool: Gradle
Spring Boot version: 2.7.18 (Note: Spring Boot 3 introduces significant changes)
Spring Security version: 5.7.11
Core Components and Authentication Flow
Spring Security implements authentication and authorization through a chain of filters. Each filter has a specific responsibility, and onl ...
Posted on Wed, 27 May 2026 16:36:19 +0000 by NickTyson
Thymeleaf Template Engine: A Comprehensive Guide
Overview
Thymeleaf is a modern server-side Java template engine that processes HTML, XML, JavaScript, CSS, and plain text. Unlike traditional templating engines, Thymeleaf can process templates in both web and non-web environments. It uses natural templates that function as static prototypes, enabling seamless collaboration between designers an ...
Posted on Fri, 22 May 2026 23:05:17 +0000 by thenature4u
Spring Boot-Based Construction Project Management System: Architecture and Implementation
This system addresses modern construction project oversight needs by replacing error-prone manual and experience-driven processes with a structured, role-aware digital platform. It supports multi-tiered project hierarchies—such as master projects, sub-projects, developer entities, and timeline tracking—while enforcing granular access control an ...
Posted on Thu, 07 May 2026 11:38:25 +0000 by elearnindia