How cliia/pku-iaaa-auto-login works
This Chromium extension lets a user configure or unlock saved IAAA credentials in its popup, then uses them on the PKU authentication page. The runtime separates credential management, encrypted credential storage, and page-side authentication: the content script retrieves and decrypts credentials, fills the login form, checks the required authentication mode, and either proceeds with ordinary login or exposes SMS/OTP steps for the user. The README documents cloud sync and the supported authentication modes; unsampled manifest wiring is not inferred.
Main entry points: iaaa.js Auto-login Script · popup.js Setup and Unlock · popup.html Configuration UI · crypto-utils.js Password Crypto
Components 13
Credential Setup
- Configuration UI
popup.html - Setup and Unlock
popup.js
Encryption and Storage
- Password Crypto
crypto-utils.js - Synced Credentials
- Local Key Cache
IAAA Login
- Auto-login Script
iaaa.js - IAAA Login Form
- Auth Mode Endpoint
- SMS Verification
- OTP Verification
Other components
- User
- Google Account Sync
- IAAA Service
Connections 18
- User → Configuration UI: configures
- Configuration UI → Setup and Unlock: invokes
- Setup and Unlock → Synced Credentials: reads and writes
- Setup and Unlock → Local Key Cache: reads and writes
- Setup and Unlock → Password Crypto: encrypts and unlocks
- Synced Credentials → Google Account Sync: syncs encrypted data
- Auto-login Script → Synced Credentials: reads credentials
- Auto-login Script → Local Key Cache: reads cached key
- Auto-login Script → Password Crypto: decrypts password
- Auto-login Script → IAAA Login Form: fills credentials
- Auto-login Script → Auth Mode Endpoint: checks auth mode
- Auth Mode Endpoint → Auto-login Script: returns auth mode
- Auto-login Script → IAAA Login Form: dispatches login
- Auto-login Script → SMS Verification: reveals and sends
- Auto-login Script → OTP Verification: reveals input
- User → SMS Verification: enters code
- User → OTP Verification: enters code
- IAAA Login Form → IAAA Service: submits login