l.c.x.git : module documentation

Part of lp.code.xmlrpc

Implementations of the XML-RPC APIs for Git.
Class GitAPI See IGitAPI.
Function _get_requester_id Get the requester ID from authentication parameters.
Function _can_internal_issuer_write Does this internal-only issuer have write access?
def _get_requester_id(auth_params):
Get the requester ID from authentication parameters.

The pack frontend layer authenticates using either the authserver (SSH) or GitAPI.authenticateWithPassword (HTTP), and then sends a corresponding dictionary of authentication parameters to other methods. For a real user, it sends a "uid" item with the person's ID; for internal services, it sends "user": "+launchpad-services"; for anonymous requests, it sends neither.

def _can_internal_issuer_write(verified):
Does this internal-only issuer have write access?

Some macaroons used by internal services are intended for writing to the repository; others only allow read access.

ParametersverifiedAn IMacaroonVerificationResult.
API Documentation for Launchpad, generated by pydoctor at 2021-03-01 00:00:02.