diff options
-rw-r--r-- | ickweb/app.py | 4 |
1 files 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'] |