How xstring-tech/software-downloads works
This repository is a Node.js example of a user-facing CCS that delegates passwordless sign-in to xstAuth Light Server, then verifies the returned ID token and maintains a local session. The main path is browser request → authentication service and authenticator approval → code exchange → token validation → protected portal; logout clears the session. Separate temporary HTTP and HTTPS servers support CCS-side ACME challenge serving and TLS checks. Setup and deployment guides are present, but their detailed flows are not represented because their contents were not sampled.
Main entry points: server.js Code exchange · HTTP-01.js HTTP challenge server · HTTPS-01.js HTTPS certificate check
Components 14
CCS Authentication
- Sign-in request
server.js - Code exchange
server.js - ID token validation
server.js
Session Handling
- Local session map
server.js - Protected portal
server.js - Logout
server.js
TLS Examples
- HTTP challenge server
HTTP-01.js - Challenge files
HTTP-01.js - HTTPS certificate check
HTTPS-01.js - TLS key and certificate
HTTPS-01.js
Other components
- End user
- Browser UI
- xstAuth Light Server
- Authenticator app
Connections 16
- End user → Browser UI: uses
README.md - Browser UI → Sign-in request: submits request
server.js - Sign-in request → xstAuth Light Server: sends ANOI
server.js - xstAuth Light Server → Browser UI: redirects for sign-in
README.md - End user → Authenticator app: approves request
README.md - Authenticator app → xstAuth Light Server: confirms identity
README.md - Browser UI → Code exchange: submits code
server.js - Code exchange → xstAuth Light Server: exchanges code
server.js - Code exchange → ID token validation: passes response
server.js - ID token validation → Local session map: tracks session
server.js - Browser UI → Protected portal: requests page
server.js - Protected portal → Local session map: reads session
server.js - Browser UI → Logout: submits logout
server.js - Logout → Local session map: ends listing
server.js - HTTP challenge server → Challenge files: reads challenge
HTTP-01.js - HTTPS certificate check → TLS key and certificate: loads credentials
HTTPS-01.js