Skip to content

Commit e23bda1

Browse files
author
=
committed
Rename consumer callback env variable to clarify that it is for OSM
1 parent b1a4720 commit e23bda1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

accessmapapi/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"OSM_CLIENT_ID",
2020
"OSM_CLIENT_SECRET",
2121
"OSM_URI",
22-
"CONSUMER_CALLBACK_URI"
22+
"OSM_CONSUMER_CALLBACK_URI"
2323
]
2424

2525

@@ -47,7 +47,7 @@ def create_app():
4747
OSM_CLIENT_ID=os.getenv("OSM_CLIENT_ID"),
4848
OSM_CLIENT_SECRET=os.getenv("OSM_CLIENT_SECRET"),
4949
OSM_URI=os.getenv("OSM_URI", DEFAULTS["OSM_URI"]),
50-
CONSUMER_CALLBACK_URI=os.getenv("CONSUMER_CALLBACK_URI")
50+
OSM_CONSUMER_CALLBACK_URI=os.getenv("OSM_CONSUMER_CALLBACK_URI")
5151
)
5252
for env_var in REQUIRED:
5353
env = app.config.get(env_var, None)

accessmapapi/blueprints/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def authorize():
6161
# callback URI - new clients are registered by creating a new pair of:
6262
# - API Key
6363
# - (short) list of allowed callback URIs
64-
consumer_callback_uri = current_app.config.get("CONSUMER_CALLBACK_URI")
64+
consumer_callback_uri = current_app.config.get("OSM_CONSUMER_CALLBACK_URI")
6565

6666
url = "{}?access_token={}&refresh_token={}".format(consumer_callback_uri, access_token, refresh_token)
6767

0 commit comments

Comments
 (0)