Private
Public Access
1
0

not working yet - added scope to request body

This commit is contained in:
Sander Roosendaal
2016-12-21 22:41:33 +01:00
parent 1f1c06f04d
commit 29de886c87
3 changed files with 29 additions and 5 deletions

View File

@@ -1095,9 +1095,11 @@ def rower_c2_authorize(request):
# Save it for use later to prevent xsrf attacks
from uuid import uuid4
state = str(uuid4())
scope = "user:read,results:write"
params = {"client_id": C2_CLIENT_ID,
"response_type": "code",
"scope":scope,
"redirect_uri": C2_REDIRECT_URI}
import urllib
url = "http://log.concept2.com/oauth/authorize?"+ urllib.urlencode(params)