Refactor SSO authentication to support multiple providers and enhance error handling
This commit is contained in:
parent
862518a45f
commit
c4cef0d9b5
10 changed files with 233 additions and 66 deletions
|
|
@ -4,7 +4,9 @@ BOOKING_API_BASE = "https://b.anny.eu/api/v1"
|
|||
CHECKOUT_FORM_API = "https://b.anny.eu/api/ui/checkout-form"
|
||||
RESOURCE_URL = f"{BOOKING_API_BASE}/resources/1-lehrbuchsammlung-eg-und-1-og/children"
|
||||
SERVICE_ID = "449"
|
||||
RESSOURCE_ID = "5993" # None Will be set dynamically if None, else use the given ID
|
||||
RESOURCE_ID = "5960" # Will be set dynamically if None, else use the given ID
|
||||
TIMEZONE = "Europe/Berlin"
|
||||
SSO_PROVIDER = "kit" # Available: kit (add more in auth/providers/)
|
||||
|
||||
DEFAULT_HEADERS = {
|
||||
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue