Implementing Phone Number and CAPTCHA-Based Authentication in React with Express Backend
Backend API Endpoints
const express = require('express');
const router = express.Router();
const User = require('./../sql/collection/users');
const sql = require('./../sql');
const utils = require('./../utils');
const uuid = require('uuid');
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
const saltRounds = 10;
const sm ...
Posted on Sat, 07 Nov 2026 16:35:14 +0000 by iversonm
Exploiting JWT Vulnerabilities in WebGoat
Cookies
Cookies are key-value pairs stored by the browser on the client side. When a server sends a Set-Cookie header in an HTTP response, the browser saves it locally and includes it in subsequent requests to the same domain. Browsers enforce limits on cookie size and quantity per domain to prevent abuse and excessive disk usage.
Sessions
Sess ...
Posted on Thu, 05 Nov 2026 16:53:00 +0000 by martor
Implementing Single Sign-On with OAuth2.0 for Third-Party Authentication
Single Sign-On
Third-Party Integration
Understanding OAuth Protocol
OAuth protocol provides a secure and standardized method for authorizing user resources. Unlike traditional authorization methods, OAuth enables third-party applications to access user resources without exposing the user's credentials (such as username and password). This ap ...
Posted on Wed, 04 Nov 2026 16:17:34 +0000 by php_newB
Implementing and Understanding Permission Control in Django REST Framework
Permission Usage Scenarios
User tiers often determine access levels in an application. This section explores how to restrict endpoints based on user types such as regular, VIP, and SVIP.
A typical database schema might look like this:
from django.db import models
class UserInfo(models.Model):
user_type_choices = (
(1, 'Regular'),
...
Posted on Mon, 02 Nov 2026 16:14:38 +0000 by grazzman
OAuth 2.0 Authentication Grant Strategies
OAuth 2.0 facilitates delegated authorization, allowing third-party applications to access resources without handling user credentials directly. Instead of sharing passwords, a resource owner issues an access token to a client.
Access Tokens vs. Static Credentials
Distinguishing between tokens and passwords is critical for security architecture ...
Posted on Mon, 02 Nov 2026 16:06:58 +0000 by matijarma
Integrating with Hikvision's Integrated Security Management Platform: Authentication
The provided official examples, while detailed, can be challenging for someone new to integrating with third-party platforms. After extensive testing and experimentation, I have documanted the process of generating the required signature. This serves as a reference for future use.
Authentication Method:
AK/SK Digest Authentication
public stat ...
Posted on Sun, 01 Nov 2026 16:29:29 +0000 by hiprakhar
Authentication Interceptor Implementation
Authentication Interceptor
Overview
Envrionment Details:
Spring Boot: 3.1.3
Java: 17
An interceptor in Spring MVC allows interception of incoming requests to execute custom logic either before or after the handler processes the request. An authentication interceptor typically verifies whether a user is logged in; if not, it redirects them to ...
Posted on Thu, 29 Oct 2026 16:12:12 +0000 by teo99
Implementing Alipay Quick Login and Permission Verification in ShopNC
ShopNC e-commerce platform supports third-party login integrations. This implementation adds Alipay quick login functionality through the following components:
Configuration Files
alipay_config.php - API credentials
alipayapi.php - Main authentication class
cacert.pem - CA certificate
return_url.php - Callback handler
lib/alipay_core.function.p ...
Posted on Wed, 28 Oct 2026 16:17:53 +0000 by herod1
WeChat Channel Partner Scan-to-Dine Data Reporting Implementation
Authentication and Certificate Management
Secure communication requires proper certificate handling distinct from merchant platform API secrets. You must utilize WeChat-provided certificates including the p12 bundle and PEM files (cert.pem, key.pem). When configuring these files, strip unnecesasry headers and footers, retaining only the string ...
Posted on Tue, 27 Oct 2026 16:38:39 +0000 by fr@nkie
WebSocket Authentication with Subprotocol Token in Java Backend
Background
When implementing real-time bidirectional communication for applications like chat systems, WebSocket connections require proper authentication. While HTTP APIs typically use Authorization headers for token validation, WebSocket connections present a challenge since custom headers cannot be directly set during the upgrade process.
Tw ...
Posted on Sun, 25 Oct 2026 16:48:55 +0000 by Homer30