How hd9s1lk/iaa_wireguard_vpn_user_auth works
IAA is a WireGuard VPN authentication portal. Users register or log in, complete TOTP or WebAuthn-based authentication, and on successful authentication the portal activates WireGuard; the dashboard reports tunnel status. The map separates authentication, risk assessment, persistence, the simulated security key, and VPN control. Edges reflect README statements or relationships visible in the excerpts and SOURCE INDEX; some UI and risk-assessment implementation details were not sampled.
Main entry points: auth_server.py Auth routes · rba.py RBA scoring · data.db Portal database · db_gateway.py DB operations
Components 16
Authentication portal
- Auth routes
idp/auth_server.py - Account registration
idp/auth_server.py - TOTP MFA
idp/auth_server.py - WebAuthn flows
idp/auth_server.py - Portal interface
idp/html/index.html
Risk assessment
- RBA scoring
idp/db/rba.py - Known IP list
idp/db/knownIPs.txt - IP geolocation
idp/auth_server.py
Identity data
- DB operations
idp/db/db_gateway.py - DB initialization
idp/db/init_db.py - Portal database
idp/db/data/data.db
FIDO2 simulation
- Yubikey simulator
client/yubikey_auth.py - Simulated credential
client/yubikey_sim.json
VPN access
- WireGuard control
- WireGuard config
server/wg_config.py
Other components
- Portal user
Connections 17
- Portal user → Auth routes: uses portal
README.md - Auth routes → Account registration: routes registration
idp/auth_server.py - Auth routes → TOTP MFA: routes MFA
idp/auth_server.py - Auth routes → WebAuthn flows: routes WebAuthn
idp/auth_server.py - Auth routes → Portal interface: renders pages
idp/auth_server.py - Auth routes → DB operations: queries and updates
idp/auth_server.py - Auth routes → RBA scoring: uses scoring
idp/auth_server.py - Auth routes → IP geolocation: looks up location
idp/auth_server.py - Auth routes → Yubikey simulator: runs subprocess
idp/auth_server.py - Yubikey simulator → Simulated credential: reads and writes
client/yubikey_auth.py - RBA scoring → Known IP list: reads IPs
idp/db/rba.py - RBA scoring → Portal database: queries login data
idp/db/rba.py - DB operations → Portal database: reads and writes
idp/db/db_gateway.py - DB initialization → Portal database: creates tables
idp/db/init_db.py - Auth routes → WireGuard control: activates tunnel
idp/auth_server.py - Auth routes → WireGuard control: checks and stops tunnel
idp/auth_server.py - Portal user → WireGuard config: VPN setup
README.md