not working yet - added scope to request body
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user