b.t.h._.HTTPAuthHandler(AbstractAuthHandler) : class documentation

Part of bzrlib.transport.http._urllib2_wrappers View In Hierarchy

Known subclasses: bzrlib.transport.http._urllib2_wrappers.HTTPBasicAuthHandler, bzrlib.transport.http._urllib2_wrappers.HTTPDigestAuthHandler, bzrlib.transport.http._urllib2_wrappers.HTTPNegotiateAuthHandler

Custom http authentication handler.

Send the authentication preventively to avoid the roundtrip associated with the 401 error and keep the revelant info in the auth request attribute.

Method get_auth Get the auth params from the request
Method set_auth Set the auth params for the request
Method build_password_prompt Undocumented
Method build_username_prompt Undocumented
Method http_error_401 Undocumented

Inherited from AbstractAuthHandler:

Method __init__ Undocumented
Method update_auth Update a value in auth marking the auth as modified if needed
Method auth_required Retry the request if the auth scheme is ours.
Method add_auth_header Add the authentication header to the request
Method auth_match Check that we are able to handle that authentication scheme.
Method build_auth_header Build the value of the header used to authenticate.
Method auth_successful The authentification was successful for the request.
Method get_user_password Ask user for a password if none is already available.
Method http_request Insert an authentication header if information is available
Method _parse_auth_header Parse the authentication header.
Method _build_password_prompt Build a prompt taking the protocol used into account.
Method _build_username_prompt Build a prompt taking the protocol used into account.
def get_auth(self, request):
Get the auth params from the request
def set_auth(self, request, auth):
Set the auth params for the request
def build_password_prompt(self, auth):
def build_username_prompt(self, auth):
def http_error_401(self, req, fp, code, msg, headers):
API Documentation for Bazaar, generated by pydoctor at 2021-07-26 00:26:14.