Permission
The base class for all permissions objects.
The Permission class is accessible via the authkit.permissions module.
The check() method is called by the authorization object to check the permission. Permissions should return the original status, headers and response or raise a NotAuthorizedError when their check() method is called.
Note
The WSGI app can only be called once by the check() method. This means that you cannot write permisisons objects that perform logical not and or operations on other permissions objects since doing so might require the same app to be called multiple times. A permission object to perform an and operation is feasible and has been impleneted as the And permission class.
Methods
See the source for more information.
