Skip to main content

multipass-auth

Reusable browser-login building blocks, spun out of canvasser. Import name is multipass; the distribution is multipass-auth (the bare name is a decade-old stub on PyPI). GPL-3.0-or-later.

Ships four modules: credential resolution (multipass.credentials), persistent browser contexts with 700/600 debug snapshots (multipass.browser), a branding skeleton (multipass.config — state layout plus every brandable string in one frozen object), and the recogniser-loop auth engine (multipass.auth: LoginState dispatch, one IdP row, structural rejection check, allowlist liveness) with Duo answered through the duo-pass dependency. Factor plugins beyond Duo arrive through extra_recognisers.

from pathlib import Path
from multipass import CredentialNames, configure, resolve_credentials

configure(names=CredentialNames(
    username_vars=("CONCURRER_USERNAME",),
    password_vars=("CONCURRER_PASSWORD",),
    program="concurrer",
))

user, pw = resolve_credentials(
    default_file=Path.home() / ".local" / "state" / "concurrer" / "secrets.env",
)

Branding

A library must not hardcode its first host's variable names. Every variable, flag example, and program name the module can utter comes from one frozen CredentialNames object, replaced wholesale by configure(names=...) — the same hook pattern as duo-pass. The MULTIPASS_* defaults are provisional; a host renames them once, here, and every prompt, error, and source report follows.

Release files for multipass-auth 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for multipass-auth 0.0.1
File Size Uploaded
multipass_auth-0.0.1.tar.gz 35.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for multipass-auth 0.0.1
File Interpreter ABI Platform
multipass_auth-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 73.2 kB

Release files / multipass_auth-0.0.1.tar.gz

Download URL multipass_auth-0.0.1.tar.gz
Size 35.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5eb9da322d6d516a9fc619cf4292bdae887a3575e2068e8709acdbe5fb48fcdb
BLAKE2b-256 checksum
How to use checksums
5daf85eb72eba20e635e398ed200c77f39070f77dd943332cf58086b1e448e52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / multipass_auth-0.0.1-py3-none-any.whl

Download URL multipass_auth-0.0.1-py3-none-any.whl
Size 37.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ef7dd84cd5f182434edf86bf5c4f0c6a1c3f9879eaa6300af5bc5151c75d673
BLAKE2b-256 checksum
How to use checksums
70a01bd90b46bdc67e2515751fe72bd6479051e102af1682b449fa4e5308de50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

0.0.3

2 release files

0.0.2

2 release files

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page