- automates file-key login on the ID portal using Playwright/Chromium - captures token, cookies, and localStorage after successful redirect - stores session data in SQLite via TypeORM (better-sqlite3) - sessions are keyed by sessionName (auto-generated UUID if not provided) - login URL, cabinet redirect URL, keys dir, and DB path are all configurable via env
15 lines
344 B
Bash
15 lines
344 B
Bash
NODE_ENV=development
|
|
PORT=3000
|
|
APP_NAME=liquio-qa-bot
|
|
APP_VERSION=1.0.0
|
|
|
|
# Directory (relative to cwd) containing *.json key descriptors
|
|
KEYS_DIR=keys
|
|
|
|
# SQLite database path
|
|
DB_PATH=data/sessions.db
|
|
|
|
# Login automation targets
|
|
ID_LOGIN_URL=https://id-liquio-diia-stg.kitsoft.ua/
|
|
CABINET_URL=https://cabinet-liquio-diia-stg.kitsoft.ua/messages
|