summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-08-05 17:06:57 +0300
committerLars Wirzenius <liw@liw.fi>2018-08-05 17:06:57 +0300
commitc8c2bf02508112b110f0743504e0dd0310a8f4d8 (patch)
tree2c43e04b0884329b19abbfc86b8d8fba4956f93c
parent5b24f59a5e502ebf4c4a53903cd43c483a869ac0 (diff)
downloadickweb-c8c2bf02508112b110f0743504e0dd0310a8f4d8.tar.gz
Fix: /token url
-rw-r--r--ickweb/app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ickweb/app.py b/ickweb/app.py
index db1a29d..dda2928 100644
--- a/ickweb/app.py
+++ b/ickweb/app.py
@@ -103,7 +103,7 @@ def create_app(our_url, controller, client_secret):
print('/callback called')
code = bottle.request.query['code']
print('code:', repr(code))
- token_url = '{}/token'.format(api_url)
+ token_url = '{}/token'.format(controller)
params = {
'grant_type': 'authorization_code',
'code': code,