add panoramax token
This commit is contained in:
parent
f66e5e3f7b
commit
1a3df2ed75
12 changed files with 1132 additions and 61 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue