From cda887fe40f5b00f86d24bf59c72744c9569bfe2 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 18 Apr 2017 21:58:54 +0200 Subject: [PATCH] fixed access scope from write to file:write --- rowers/tpstuff.py | 2 +- rowers/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rowers/tpstuff.py b/rowers/tpstuff.py index c3ddf58e..7146a109 100644 --- a/rowers/tpstuff.py +++ b/rowers/tpstuff.py @@ -163,7 +163,7 @@ def make_authorization_url(request): params = {"client_id": TP_CLIENT_KEY, "response_type": "code", "redirect_uri": TP_REDIRECT_URI, - "scope": "write", + "scope": "file:write", } url = "https://oauth.sandbox.trainingpeaks.com/oauth/authorize?" +urllib.urlencode(params) diff --git a/rowers/views.py b/rowers/views.py index 83e4c269..9877f00d 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -1740,7 +1740,7 @@ def rower_tp_authorize(request): params = {"client_id": TP_CLIENT_KEY, "response_type": "code", "redirect_uri": TP_REDIRECT_URI, - "scope": "write", + "scope": "file:write", } url = "https://oauth.sandbox.trainingpeaks.com/oauth/authorize/?" +urllib.urlencode(params)