still not working
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user