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

University Restaurant Recommendation and Review System: Implementation with SpringBoot, Vue, and uniapp

Technical Stack Overview Backend Framework: SpringBoot SpringBoot provides embedded servers such as Tomcat, Jetty, and Undertow, eliminating the need for separate installations. Its auto-configuration feature automatically configures the application based on dependencies present in the project. This significantly simplifies the setup process by ...

Posted on Tue, 04 Aug 2026 16:40:46 +0000 by jrolands

Django Stateful Authentication: Cookies, Sessions, and View Protection

Client-Side vs. Server-Side Storage Evolution Early web architecture were stateless, serving identical content to all visitors. As e-commerce and social platforms emerged, user state became critical. Initial solutions utilized cookies, storing key-value pairs locally on the client browser. While simple, cookies are vulnerable to interception an ...

Posted on Sun, 02 Aug 2026 16:04:39 +0000 by anthill

Implementing Custom Authentication Backends for Third-Party Login in Django

Third-party authentication allows an application to delegate identity verification to an external provider. Upon successful verification, the provider returns a unique identifier to the application server. The server uses this identifier to locate the corresponding user record in the local database. Since the external provider handles the crede ...

Posted on Sat, 01 Aug 2026 17:03:42 +0000 by Unseeeen

Solving Session Persistence Issues in Load-Balanced Environments

In a distributed architecture where multiple backend instances handle incoming traffic, maintaining a consistent authentication state is a common challenge. Typically, a standard implementation involves issuing a unique token to the user upon a successful login. This token is stored in a centralized cache, such as Redis, and the client must inc ...

Posted on Thu, 30 Jul 2026 16:08:16 +0000 by jordan00

Understanding Django Middleware: Execution Flow and Custom Implementation

Django Request Lifecycle When a client request arrives at a Django application, it passes through several stages before reaching the view layer. Django uses the Web Server Gateway Interface (WSGI) to handle this communication. While Django ships with a built-in wsgiref module for development purposes, production environments typically employ uw ...

Posted on Thu, 30 Jul 2026 16:01:19 +0000 by DJP1986

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

Integrating Spring Security for Token-Based Authentication and Authorization

1. Introduction to Spring Security 1.1 Framework Overview Spring is a highly popular and successful Java application development framework. Spring Security, built upon the Spring framework, provides a comprehensive solution for web application security. Generally, web application security includes two parts: user authentication and user authori ...

Posted on Fri, 24 Jul 2026 16:28:33 +0000 by bobbyM

Configuring MySQL Password Strength Validation with validate_password Plugin

MySQL Password Security Enhancement Plugin The validate_password plugin enforces password complexity rules in MySQL, available in versions 5.5 and later. By default, this plugin is not enabled in standard installations, allowing simple passwords with only warnings. Enabling the Plugin Add the following configuration to your my.cnf file: [mysqld ...

Posted on Mon, 20 Jul 2026 17:11:54 +0000 by benjam

PyJWT: A Comprehensive Guide to JSON Web Token Implementation in Python

PyJWT: A Comprehensive Guide to JSON Web Token Implementation in Python JSON Web Tokens (JWT) provide a compact, secure method for transmitting information between parties as JSON objects. PyJWT is a powerful Python library that enables developers to create, parse, and verify JWT tokens with ease. This article explores the fundamentals of PyJWT ...

Posted on Mon, 20 Jul 2026 17:06:30 +0000 by dkode