Thai Digital ID Demo
GitHub Pages — Static Mock
Login with Thai Digital ID
Demo: DGA (OIDC) + ThaID (QR / Biometric)
Login with DGA Digital ID
or
Login with ThaID
Select Mock User
สมชาย ใจดี (IAL 2.3)
สมหญิง รักดี (IAL 3)
Authorize & Login
Scan QR with ThaID App
Approve in ThaID App
(Mock: simulates user approving in the ThaID mobile app)
DGA: OIDC Authorization Code Flow
Click "Login with DGA" — redirect to DGA authorize endpoint
User authenticates on DGA (mock form in demo)
DGA redirects back with authorization_code
Server exchanges code for access_token + id_token
Server verifies id_token (RS256 + JWKS)
Fetch /userinfo for claims
ThaID: QR + Polling Flow
Click "Login with ThaID" — server generates QR request
Display QR for user to scan with ThaID app
Frontend polls server every 2s for approval
User scans QR + biometric in ThaID app
Server marks request approved
Poll returns approved + session — show profile
S
-
DGA
-
IAL -
Show Token Details
ID Token (JWT)
-
ID Token Claims
-
UserInfo Response
-
Logout