Managing Session Persistence Using Dual JWT Tokens in Vue and SpringBoot
Architecture Overview
To enhance session security and manage user persistence, the architecture employs a pair of JSON Web Tokens (JWT). An access_token handles immediate API requests with a short lifespan (e.g., 30 minutes), while a refresh_token maintains longer-term validity (e.g., 60 minutes) to extend sessions without re-authentication. Wh ...
Posted on Thu, 14 May 2026 22:05:39 +0000 by eekeek
Securing Data Transmission with JSON Web Tokens
JSON Web Tokens (JWT) are a compact, URL-safe means of representing claims to be transferred between two parties. By employing digital signatures, JWTs ensure that data remains tamper-proof during transit.
Structure of a JWT
A JWT is composed of three distinct segments separated by periods:
Header: Specifies the algorithm and token type.
Paylo ...
Posted on Thu, 14 May 2026 05:27:11 +0000 by Chamza
Java RSA Cryptography and JWT Token Implementation Guide
RSA Asymmetric Encryption Implementation
The following example demonstrates a complete RSA encryption utility for generating key pairs, encrypting data with public keys, and decryptign with private keys. This implementation uses Java's built-in cryptographic providers with Base64 encoding for key and data portability.
import javax.crypto.Cipher ...
Posted on Wed, 13 May 2026 13:41:45 +0000 by rskandarpa
Web Frontend Architect: Editor Component Development
1. Introduction
Preface
Welcome back to the development of the B-side project. This week we will focus on coding the right-side settings part of the editor, completing component property settings, layer settings, and page settings. To avoid getting lost in business complexities, we'll cover several typical features and knowledge points.
What ...
Posted on Mon, 11 May 2026 01:12:33 +0000 by nishanthc12
Implementing JWT Refresh Tokens in Spring Boot Applications
Securing stateless REST APIs relies heavily on short-lived access tokens paired with longer-lived refresh credentials. This pattern prevents frequent re-authentication while limiting exposure from compromised tokens. Below is a practical implementation of this mechanism using Spring Boot, Spring Security, and the JJWT library.
Core Dependencies ...
Posted on Sat, 09 May 2026 22:48:40 +0000 by themire
Fixing the TimedJSONWebSignatureSerializer Import Error in Flask
Problem Overview
When attempting to generate verification tokens in Flask using TimedJSONWebSignatureSerializer from the itsdangerous library (version 2.1.2), an import error occurs:
ImportError: cannot import name 'TimedJSONWebSignatureSerializer' from 'itsdangerous'
The clas simply doesn't exist in the installed version of the library.
Root ...
Posted on Thu, 07 May 2026 16:12:54 +0000 by griffith
Microservice Token Authentication and User Information Propagation Scheme
Design Approach
Upon successful login, generate a token using the userId and have the frontend store it.
When subsequent requests reach the gateway, create a filter to parse userId from the token and inject it into the request headers.
Once the request arrives at the target service, create an interceptor to extract userId from the headers, fet ...
Posted on Thu, 07 May 2026 05:44:52 +0000 by edwinlcy
JWT Security: A WebGoat Challenge Walkthrough
Cookie (Stored in Browser)
A cookie is a specific piece of data that is permanently stored in the browser. It is merely a data storage functionality implemented by browsers. Cookies are generated by the server, sent to the browser, and saved as key-value pairs in a text file within a directory on the client. On subsequent requests to the same w ...
Posted on Thu, 07 May 2026 05:24:52 +0000 by marcela1637