From 5b24f59a5e502ebf4c4a53903cd43c483a869ac0 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 5 Aug 2018 17:05:57 +0300 Subject: Fix: retrieving token URL --- ickweb/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ickweb/app.py b/ickweb/app.py index 25d9ed1..db1a29d 100644 --- a/ickweb/app.py +++ b/ickweb/app.py @@ -103,14 +103,14 @@ def create_app(our_url, controller, client_secret): print('/callback called') code = bottle.request.query['code'] print('code:', repr(code)) - path = '/token' + token_url = '{}/token'.format(api_url) params = { 'grant_type': 'authorization_code', 'code': code, } auth = (client_id, client_secret) print('requesting token') - r = api.POST(path, params, auth) + r = api.POST(token_url, params, auth) print('r:', repr(r)) obj = r.json() token = obj['access_token'] -- cgit v1.2.1