File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments