[Inteproxy-commits] r3 - trunk
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Oct 31 14:42:28 CET 2006
Author: jan
Date: 2006-10-31 14:42:27 +0100 (Tue, 31 Oct 2006)
New Revision: 3
Added:
trunk/ChangeLog
Modified:
trunk/InteProxy.py
Log:
* InteProxy.py (InteProxyHTTPRequestHandler.convert_url): Added mandatory
user authentication dialog and adding the authentication data in the
deegree OWS-Proxy syntax to the proxied URL.
* ChangeLog: Started.
Added: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-10-30 15:53:57 UTC (rev 2)
+++ trunk/ChangeLog 2006-10-31 13:42:27 UTC (rev 3)
@@ -0,0 +1,7 @@
+2006-10-31 Jan-Oliver Wagner <jan-oliver.wagner at intevation.de>
+
+ * InteProxy.py (InteProxyHTTPRequestHandler.convert_url): Added mandatory
+ user authentication dialog and adding the authentication data in the
+ deegree OWS-Proxy syntax to the proxied URL.
+
+ * ChangeLog: Started.
Modified: trunk/InteProxy.py
===================================================================
--- trunk/InteProxy.py 2006-10-30 15:53:57 UTC (rev 2)
+++ trunk/InteProxy.py 2006-10-31 13:42:27 UTC (rev 3)
@@ -206,6 +206,15 @@
"""
scheme, netloc, path, query, fragment = urlparse.urlsplit(url)
+ # XXX: This is hardcoded syntax for deegree OWS Proxy
+ # Eventually this should be moved to a method of its own
+ # and anyway this is just a dirty solution since passwords
+ # are not really managed.
+ # TODO: Building the query this way is not safe.
+ title = "Username for %s: " % path
+ user, password = getpassword(title)
+ query += "&user=%s&password=%s" % (user, password)
+
# both scheme and netloc must be empty strings because the url
# we work with is the url on the first line of a HTTP request
# which doesn't include them
More information about the Inteproxy-commits
mailing list