fixed access scope from write to file:write
This commit is contained in:
@@ -163,7 +163,7 @@ def make_authorization_url(request):
|
|||||||
params = {"client_id": TP_CLIENT_KEY,
|
params = {"client_id": TP_CLIENT_KEY,
|
||||||
"response_type": "code",
|
"response_type": "code",
|
||||||
"redirect_uri": TP_REDIRECT_URI,
|
"redirect_uri": TP_REDIRECT_URI,
|
||||||
"scope": "write",
|
"scope": "file:write",
|
||||||
}
|
}
|
||||||
url = "https://oauth.sandbox.trainingpeaks.com/oauth/authorize?" +urllib.urlencode(params)
|
url = "https://oauth.sandbox.trainingpeaks.com/oauth/authorize?" +urllib.urlencode(params)
|
||||||
|
|
||||||
|
|||||||
@@ -1740,7 +1740,7 @@ def rower_tp_authorize(request):
|
|||||||
params = {"client_id": TP_CLIENT_KEY,
|
params = {"client_id": TP_CLIENT_KEY,
|
||||||
"response_type": "code",
|
"response_type": "code",
|
||||||
"redirect_uri": TP_REDIRECT_URI,
|
"redirect_uri": TP_REDIRECT_URI,
|
||||||
"scope": "write",
|
"scope": "file:write",
|
||||||
}
|
}
|
||||||
url = "https://oauth.sandbox.trainingpeaks.com/oauth/authorize/?" +urllib.urlencode(params)
|
url = "https://oauth.sandbox.trainingpeaks.com/oauth/authorize/?" +urllib.urlencode(params)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user