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

Developing a Food Snatching and Sharing Platform for WeChat Mini Program Users

Given the widespread adoption of WeChat, the client side of this platform is developed as a WeChat Mini Program to align with real-world usage scenarios. 1. Implementing WeChat Login (Controller Layer) @PostMapping("/wechat-login") @ApiOperation("WeChat user authentication") public Result<AuthResponseVO> authenticate(@ ...

Posted on Mon, 15 Jun 2026 16:51:24 +0000 by skter4938

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

Implementing JWT Authentication in Spring Boot Applications

JSON Web Tokens consist of three distinct segments: a header defining cryptographic parameters, a payload carrying assertions, and a signature ensuring integrity. Implementing token validation in a Spring ecosystem requires orchestrating token generation, externalized configuration, request interception, and MVC registration. The following guid ...

Posted on Wed, 10 Jun 2026 18:12:59 +0000 by henryblake1979

Implementing JWT Authentication in ASP.NET Core Web API: Building an Authentication Center

This series provides a concise guide on using JWT (JSON Web Tokens) to create tokens for authentication in an ASP.NET Core Web API. 1. Create a ASP.NET Core Web API Project We'll be using Visual Studio 2019 with .NET Core 3.1. 2. Add JWT Services 2.1 Install the NuGet Package Install System.IdentityModel.Tokens.Jwt via NuGet Package Manager. 2. ...

Posted on Sun, 07 Jun 2026 18:09:41 +0000 by kitcorsa

Building a GVA-Based Admin System with Gin, Vue, and JWT

Login Handling with Sestion and JWT Session-based authentication is required to restrict page access to logged-in users only. The Gin framework provides session middleware via github.com/gin-contrib/sessions. import "github.com/gin-contrib/sessions" rootRouter.GET("/login", func(c *gin.Context) { session := sessions.Def ...

Posted on Tue, 02 Jun 2026 18:38:17 +0000 by jexx

JWT Authentication Implementation for Login Verification

Understanding JWT Structure JWT (JSON Web Token) is an open standard (RFC 7519) that defines a compact method for securely transmitting information betwean parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs are commonly used for authentication and authorization purposes in web application ...

Posted on Thu, 28 May 2026 18:34:37 +0000 by rishiraj

Java Backend Employee and Department Management: Global Exception Handling, Login Validation, AOP, and Transaction Management

Login Module After completing all the previous modules, we continue with login validation, global exception handling, transaction management, and AOP. A simple login checks the database for the employee. This can be implemented using a three-layer architecture. Controller Layer Create a LoginController class dedicated to handling login requests ...

Posted on Tue, 19 May 2026 06:56:45 +0000 by gkep

Securing Microservice Discovery with Eureka: End-to-End Protection Patterns

Why Discovery Security Matters When every microservice is reachable over the network, the service registry becomes the first line of defense. An unprotected Eureka instance can be used to: Inject rogue endpoints into the load-balancer Exfiltrate configuration metadata Trigger cascading failures via forged health checks This guide shows how to ...

Posted on Sun, 17 May 2026 14:56:21 +0000 by markmusicman

University Laboratory Resource Management System with Spring Boot, Vue, and UniApp

This system provides a unified platform for managing laboratory assets, booking schedules, equipment maintenance logs, and user permissions across academic institutions. Built with a modern full-stack architecture, it supports web and mobile access through responsive Vue-based dashboards and cross-platform uniapp clients. Architecture Overview ...

Posted on Fri, 15 May 2026 06:09:28 +0000 by activeserver