กลับ Auth & Identity Service Auth Flow
EN TH
สาธิต (Mock)
เพื่อการศึกษาเท่านั้น ข้อมูล สินค้า และการโต้ตอบทั้งหมดที่แสดงเป็นตัวอย่างจำลองสมมติ — ไม่ใช่ผลิตภัณฑ์จริงและไม่มีสิ่งใดจำหน่าย


Auth Flow

Simulates a JWT authentication flow: credentials → server validation → token generation → protected resource access. Shows token anatomy and RBAC.

Login

Demo credentials: any email + password ≥8 chars
AUTH FLOW STEPS
1
Credential Validation
Checking email + BCrypt password hash against user store…
2
JWT Token Generation
Signing HS256 JWT with subject, role claims, and expiry…
3
Token Issued
Access token (1h) + Refresh token (7d) returned…
4
Protected Route Access
Bearer token validated by middleware — resource returned…
TOKEN OUTPUT
JWT — HS256
ACCESS TOKEN
Waiting for login…
DECODED PAYLOAD
Waiting…