v1.25
This commit is contained in:
@@ -347,8 +347,14 @@ def get_token(code):
|
|||||||
prepped.body+="&scope="
|
prepped.body+="&scope="
|
||||||
prepped.body+=scope
|
prepped.body+=scope
|
||||||
|
|
||||||
|
print prepped.body
|
||||||
|
|
||||||
response = s.send(prepped)
|
response = s.send(prepped)
|
||||||
|
|
||||||
|
print response.body
|
||||||
|
print ''
|
||||||
|
print response.text
|
||||||
|
|
||||||
token_json = response.json()
|
token_json = response.json()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -376,9 +382,9 @@ def make_authorization_url(request):
|
|||||||
state = str(uuid4())
|
state = str(uuid4())
|
||||||
scope = "user:read,results:write"
|
scope = "user:read,results:write"
|
||||||
|
|
||||||
params = {"client_id": CLIENT_ID,
|
params = {"client_id": C2_CLIENT_ID,
|
||||||
"response_type": "code",
|
"response_type": "code",
|
||||||
"redirect_uri": REDIRECT_URI}
|
"redirect_uri": C2_REDIRECT_URI}
|
||||||
url = "https://log.concept2.com/oauth/authorize?"+ urllib.urlencode(params)
|
url = "https://log.concept2.com/oauth/authorize?"+ urllib.urlencode(params)
|
||||||
url += "&scope="+scope
|
url += "&scope="+scope
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user