My favorites
▼
|
Sign in
jaikuengine
Jaiku, now with more open source!
Project Home
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
77
attachment: views.py.diff
(959 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: views.py
===================================================================
--- views.py (revision 38)
+++ views.py (working copy)
@@ -213,6 +213,7 @@
raise Exception("inactive consumer")
perms = request.REQUEST.get('perms', 'read')
+ oauth_callback = request.REQUEST.get("oauth_callback", None)
if request.POST:
# we posted to this page to authorize
# TODO verify nonce
@@ -221,9 +222,8 @@
api.oauth_authorize_request_token(api.ROOT, oauth_token_ref.key_,
actor=request.user.nick, perms=perms)
- oauth_callback = request.POST.get("oauth_callback", None)
if oauth_callback and oauth_consumer_ref.type == "web":
- return http.HttpResponseRedirect(oauth_callback)
+ return http.HttpResponseRedirect(oauth_callback + "?oauth_token=" + oauth_token)
c = template.RequestContext(request, locals())
t = loader.get_template('api/templates/authorized.html')
Powered by
Google Project Hosting