AuthKit

 

NotAuthorizedError

Raised when a permission check fails because the user is not authorized.

The exception is caught by the httpexceptions middleware and converted into a 403 HTTP response which is intercepted by the authentication middleware triggering a sign in.


Attributes

a code

403

a comment

''

a detail

''

a explanation

'Access was denied to this resource.'

a required_headers

()

a template

'%(explanation)s\r\n<br/>%(detail)s\r\n<!-- %(comment)s -->'

a title

'Forbidden'

Methods

f __call__(self, environ, start_response, exc_info=None) ...

This exception as a WSGI application

f __getitem__(...) ...

f __init__(self, detail=None, headers=None, comment=None) ...

See the source for more information.