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)