login_all
Authenticate to multiple EduPage schools in one call with comma-separated subdomains and credentials, establishing a session for each.
Instructions
Log in to one or more schools in a single call. Writes: establishes (or replaces) the server-side session for each subdomain.
Args: subdomains: Comma-separated school subdomains, e.g. 'school1,school2'. Falls back to EDUPAGE_SUBDOMAINS. usernames: Comma-separated usernames, one per school (or a single one). Falls back to EDUPAGE_USERNAME. passwords: Comma-separated passwords, one per school (or a single one). Falls back to EDUPAGE_PASSWORD.
Returns: dict: {'results': [{subdomain, ok, user_id, role, two_factor_required}], 'active_subdomain': ...}. A failed school is reported per-entry with its error.
Notes:
- Add schools one at a time with login.
- When EDUPAGE_SUBDOMAINS is set it is a strict allowlist: schools
outside it are refused per-entry without creating a session.
- Finish any pending 2FA with two_factor_finish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| passwords | No | ||
| usernames | No | ||
| subdomains | No |