AuthKit

 

Permission

The base class for all permissions objects.

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

f __init__(...) ...

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

f check(self, app, environ, start_response) ...

See the source for more information.