l.s.m.s.SnapBuildMacaroonIssuer(MacaroonIssuerBase) : class documentation

Part of lp.snappy.model.snapbuild View In Hierarchy

No class docstring
Method checkIssuingContext See MacaroonIssuerBase.
Method checkVerificationContext See MacaroonIssuerBase.
Method verifyPrimaryCaveat See MacaroonIssuerBase.

Inherited from MacaroonIssuerBase:

Method identifier See IMacaroonIssuer.
Method issueMacaroon See IMacaroonIssuer.
Method verifyMacaroon See IMacaroonIssuer.
Method _primary_caveat_name The name of the primary context caveat issued by this issuer.
Method _root_secret Undocumented
def checkIssuingContext(self, context, **kwargs):
See MacaroonIssuerBase.

For issuing, the context is an ISnapBuild.

def checkVerificationContext(self, context, **kwargs):
See MacaroonIssuerBase.
def verifyPrimaryCaveat(self, verified, caveat_value, context, user=None, **kwargs):
See MacaroonIssuerBase.

For verification, the context is an IGitRepository. We check that the repository is needed to build the ISnapBuild that is the context of the macaroon, and that the context build is currently building.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.