summaryrefslogtreecommitdiff
path: root/paste/auth
diff options
context:
space:
mode:
authorianb <devnull@localhost>2007-02-01 03:17:15 +0000
committerianb <devnull@localhost>2007-02-01 03:17:15 +0000
commitabfca84b011f8b36132b67f55cb0a19f855147ae (patch)
tree6d7737571144d81b3af0114572120850698829fe /paste/auth
parent9760a9fd6dff56660b1f6875f6517120d1cb39ff (diff)
downloadpaste-abfca84b011f8b36132b67f55cb0a19f855147ae.tar.gz
path from Robert Almeida, to re-enable the internal redirect to the login form. Dunno how it should really work, but eh
Diffstat (limited to 'paste/auth')
-rw-r--r--paste/auth/open_id.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/paste/auth/open_id.py b/paste/auth/open_id.py
index b4b0a31..5fbfcc8 100644
--- a/paste/auth/open_id.py
+++ b/paste/auth/open_id.py
@@ -269,11 +269,11 @@ class AuthOpenIDHandler(object):
message = fmt % (cgi.escape(openid_url),)
else:
# @@: This stuff doesn't make sense to me; why not a remote redirect?
- #request['environ']['paste.auth.open_id'] = openid_url
- #request['environ']['PATH_INFO'] = self.login_redirect
- #return self.app(request['environ'], request['start'])
- exc = httpexceptions.HTTPTemporaryRedirect(self.login_redirect)
- return exc.wsgi_application(request['environ'], request['start'])
+ request['environ']['paste.auth.open_id'] = openid_url
+ request['environ']['PATH_INFO'] = self.login_redirect
+ return self.app(request['environ'], request['start'])
+ #exc = httpexceptions.HTTPTemporaryRedirect(self.login_redirect)
+ #return exc.wsgi_application(request['environ'], request['start'])
else:
# cancelled
message = 'Verification cancelled'