How uuoov/autoszuweb works
AutoSZUWeb is a Windows/macOS campus-network authenticator with an optional VPN/代理 synchronization toolset. Its main workflow initializes or reads encrypted credentials, attempts SRun authentication then falls back to dormitory ePortal, and monitors connectivity for retries. The graph also preserves the documented VPN integration branch. Some subsystem wiring is based on README descriptions because the corresponding implementation excerpts were not provided; those relationships are cited to the README rather than inferred from filenames.
Main entry points: AutoSZUWeb.cpp Application entry · web.cpp Login orchestration · vpn_sync.py VPN synchronization · runtime.cpp Connectivity monitor
Components 22
Application lifecycle
- Application entry
src/AutoSZUWeb.cpp - Single-instance guard
src/single_instance.cpp - Credential onboarding
src/AutoSZUWeb.cpp - Credential template
src/user_data.cpp - Connectivity monitor
src/runtime.cpp
Campus authentication
- Network probe
src/network.cpp - Login orchestration
src/web.cpp - SRun authentication
src/srun.cpp - Dormitory ePortal
src/web.cpp
Platform services
- Config paths
src/file_path.cpp - Credential protection
src/sys.cpp - Login autostart
src/sys.cpp - Platform UI
src/sys.cpp - Authentication logs
src/sys.cpp - macOS Keychain
VPN synchronization
- VPN setup assistant
scripts/vpn_setup.py - VPN synchronization
scripts/vpn_sync.py
Other components
- User
- Campus authentication service
- Proxy endpoint
- Clash/Mihomo API
- VPN client commands
Connections 24
- User → Application entry: starts
README.md - Application entry → Single-instance guard: guards startup
src/AutoSZUWeb.cpp - Application entry → Config paths: resolves paths
src/AutoSZUWeb.cpp - Application entry → Credential onboarding: configures first run
src/AutoSZUWeb.cpp - Credential onboarding → Credential template: creates or reads
src/AutoSZUWeb.cpp - Credential onboarding → Credential protection: encrypts credentials
src/AutoSZUWeb.cpp - Credential protection → macOS Keychain: uses key
README.md - Application entry → Credential protection: decrypts credentials
src/AutoSZUWeb.cpp - Application entry → Login autostart: sets autostart
src/AutoSZUWeb.cpp - Application entry → Login orchestration: authenticates
src/AutoSZUWeb.cpp - Application entry → Connectivity monitor: starts monitor
src/AutoSZUWeb.cpp - Connectivity monitor → Login orchestration: retries offline
README.md - Connectivity monitor → Network probe: checks reachability
README.md - Login orchestration → SRun authentication: tries first
src/web.cpp - Login orchestration → Dormitory ePortal: falls back
src/web.cpp - SRun authentication → Campus authentication service: authenticates
README.md - Dormitory ePortal → Campus authentication service: authenticates
README.md - Login orchestration → Authentication logs: writes result
src/web.cpp - Login orchestration → Platform UI: shows first result
src/web.cpp - User → VPN setup assistant: configures VPN
README.md - VPN setup assistant → VPN synchronization: supports setup
scripts/vpn_setup.py - VPN synchronization → Proxy endpoint: probes proxy
README.md - VPN synchronization → Clash/Mihomo API: selects node
README.md - VPN synchronization → VPN client commands: runs commands
README.md