Add wyby sync: proactive PIN provisioning from wyby admin portal
- wyby_client.py: headless login to admin.wyby.ch (OIDC auth-code flow with PKCE, cookie session) + booking extraction from the scheduler API (GetWallpaperData); PIN = last 6 digits of transaction Number; rental days derived from RentingStartDate / AllotmentRentingEndDate (exclusive midnight) - wyby_sync.py: for every upcoming booking ensure Glutz user, group membership and PIN with full-day validity; idempotent, self-healing against wyby's own late interface runs; dry-run default - deploy: wyby-sync.service + 15-min timer (24/7); extend_pins stays hourly as safety net - 39 tests; requests added via uv (available system-wide for the oneshot)
This commit is contained in:
+3
-1
@@ -4,7 +4,9 @@ version = "0.1.0"
|
||||
description = "Extend wyby booking PINs on a Glutz eAccess system to full-day validity"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = []
|
||||
dependencies = [
|
||||
"requests>=2.34.2",
|
||||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
|
||||
Reference in New Issue
Block a user