l.a.i.s.IAuthorization(Interface) : interface documentation

Part of lp.app.interfaces.security View In Hierarchy

Authorization policy for a particular object and permission.
Method checkUnauthenticated Whether an unauthenticated user has permission on obj.
Method checkAuthenticated Whether an authenticated user has permission on obj.
def checkUnauthenticated():
Whether an unauthenticated user has permission on obj.

Returns True if an unauthenticated user has that permission on the adapted object. Otherwise returns False.

If the check must be delegated to other objects, this method can optionally instead generate (object, permission) tuples. It is then the security policy's job of checking authorization of those pairs.

def checkAuthenticated(person):
Whether an authenticated user has permission on obj.

Returns True if the person has that permission on the adapted object. Otherwise returns False.

If the check must be delegated to other objects, this method can optionally instead generate (object, permission) tuples. It is then the security policy's job of checking authorization of those pairs.

Typically all delegated authorizations must be allowed for the top-level authorization to be allowed, but this is dependent on the security policy in force.

ParameterspersonThe person that is authenticated.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.