add panoramax token

This commit is contained in:
Tykayn 2025-09-22 11:44:25 +02:00 committed by tykayn
parent f66e5e3f7b
commit 1a3df2ed75
12 changed files with 1132 additions and 61 deletions

View file

@ -48,7 +48,7 @@ class DemoTrafficResource:
# Get OAuth2 configuration parameters
client_id = os.getenv("CLIENT_ID", "")
client_secret = os.getenv("CLIENT_SECRET", "")
client_authorizations = os.getenv("CLIENT_AUTORIZATIONS", "read_prefs")
client_authorizations = os.getenv("CLIENT_AUTHORIZATIONS", "read_prefs")
client_redirect = os.getenv("CLIENT_REDIRECT", "")
# Check if we have an authorization code in the query parameters
@ -114,7 +114,9 @@ class DemoTrafficResource:
client_authorizations=client_authorizations,
is_authenticated=is_authenticated,
osm_username=osm_username,
osm_user_id=osm_user_id
osm_user_id=osm_user_id,
panoramax_upload_url=os.getenv("PANORAMAX_UPLOAD_URL", ""),
panoramax_token=os.getenv("PANORAMAX_TOKEN", "")
)
# Set the response body and status