Package glue :: Package auth :: Module saml :: Class HTTPNegotiateAuthHandler
[hide private]
[frames] | no frames]

Class HTTPNegotiateAuthHandler

source code

urllib2.BaseHandler --+
                      |
                     HTTPNegotiateAuthHandler

This class uses an existing Kerberos ticket to authenticate via HTTP Negotiate Authentication. An instance of this class can be passed into the build_opener function from the urllib module.

Modified from source found at

http://selenic.com/pipermail/mercurial/2008-June/019776.html

Instance Methods [hide private]
 
__init__(self, service_principal)
service_principal is the Kerberos principal of the host against which the client authenticates.
source code
 
authenticate_server(self, headers) source code
 
clean_context(self) source code
 
generate_request_header(self, req, headers) source code
 
http_error_401(self, req, fp, code, msg, headers) source code
 
negotiate_value(self, headers) source code

Inherited from urllib2.BaseHandler: __lt__, add_parent, close

Class Variables [hide private]
  handler_order = 480
  rx = re.compile(r'(?i)(?:.*,)*\s*Negotiate\s*([^,]*),?')
Method Details [hide private]

__init__(self, service_principal)
(Constructor)

source code 

service_principal is the Kerberos principal of the host against which the client authenticates. It should usually be the string 'HTTP@login.ligo.org'.