Handling Shopee API Authentication and Token Lifecycle
The Shopee Open Plaftorm mandates a specific procedure for application authorization and token management. All request to partner endpoints must include a valid signature generated from the partner key and the request path.
Signature Computation
A signature is derived using the HMAC-SHA256 algorithm. The input is a base string consisting of the ...
Posted on Sun, 21 Jun 2026 16:31:45 +0000 by webtech123
Implementing Security in Spring Boot Applications with Spring Security
Introduction to Spring Security
Spring Security provides comprehensive security services for Java EE applications. As a core component of the Spring ecosystem, it implements layered security architecture where each application layer can be protected independently. This framework enables fine-grained access control at the controller, service, an ...
Posted on Sat, 20 Jun 2026 16:49:18 +0000 by RabPHP
Implementing Authentication in .NET Core Using Identity and JWT
Setting Up Identity-Based Authentication
1. Install Required NuGet Packages
Begin by adding the Identity framework package to your project:
Install-Package Microsoft.AspNetCore.Identity.EntityFrameworkCore
Install-Package Microsoft.EntityFrameworkCore.SqlServer
2. Define Custom Entity Models
Create domain entities that extend Identity's base c ...
Posted on Sat, 13 Jun 2026 18:11:55 +0000 by webproclaim
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 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
Spring Boot Shiro Integration: Custom Authentication Mechanisms
Spring Boot Shiro Integration: Custom Authentication Mechanisms
Introduction to Apache Shiro
Apache Shiro is a powerful and user-friendly Java security framework designed to handle authentication, authorization, session management, and cryptography. Its straightforward architecture makes it suitable for applications of all sizes, from mobile ap ...
Posted on Sat, 06 Jun 2026 18:45:38 +0000 by DapperDanMan
Configuring Axios Base URL and Request Headers in Vue.js
Creating an HTTP Configuration Module
First, create an http.js file to store the server configuration and request interceptors.
import axios from "axios";
const apiInstance = axios.create({
baseURL: 'https://your-api-domain.com',
timeout: 15000
});
apiInstance.interceptors.request.use((config) => {
const storedToken = ...
Posted on Thu, 04 Jun 2026 18:35:14 +0000 by henryhund
Working with Django's Authentication System
Initializing a Superuser
Execute the following management command to create an administrative account:
python manage.py createsuperuser
During the prompt:
Username: Required.
Email: Optional.
Password: Will be stored as a hash. If forgotten, you can manually replace the hash in the database, though resetting via management commands is preferr ...
Posted on Tue, 02 Jun 2026 16:24:57 +0000 by Negligence
Building a Robust HTTP Client with Interceptors in WeChat Mini Programs
Implementing a reusable HTTP client with request and response interception improves maintainability and centralizes common logic such as authentication and error handling. The following approach uses wx.request wrapped in promises and provides a modular structure for different HTTP methods.
Core Request Factory
A factory function standardizes t ...
Posted on Fri, 29 May 2026 21:06:44 +0000 by lucilue2003
Implementing a Unified Request Handler and User Interface in a Uni-App Project
A request handler centralizes HTTP opertaions, managing authentication, error handling, and API interactions. Below is a refactored implementation using async/await for clarity.
import authStore from '@/store/auth'
import appConfig from '@/config/app'
import { fetchAuthToken } from '@/utils/authentication'
import { errorMessages } from '@/utils ...
Posted on Thu, 28 May 2026 21:10:23 +0000 by vinny69