Private
Public Access
1
0

still not working

This commit is contained in:
Sander Roosendaal
2016-12-22 08:29:02 +01:00
parent 29de886c87
commit 23c3ff70b5
2 changed files with 3 additions and 4 deletions

View File

@@ -311,9 +311,10 @@ def make_authorization_url(request):
params = {"client_id": CLIENT_ID,
"response_type": "code",
"scope":scope,
"redirect_uri": REDIRECT_URI}
url = "https://log.concept2.com/oauth/authorize?"+ urllib.urlencode(params)
url += "&scope="+scope
print url
# url = "https://ssl.reddit.com/api/v1/authorize?" + urllib.urlencode(params)
return HttpResponseRedirect(url)

View File

@@ -1096,14 +1096,12 @@ def rower_c2_authorize(request):
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)
url += "&scope="+scope
return HttpResponseRedirect(url)
@login_required()