AuthKit

 

NotAuthenticatedError

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

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


Attributes

a code

401

a comment

''

a detail

''

a explanation

'The server could not comply with the request since\r\nit is either malformed or otherwise incorrect.\r\n'

a required_headers

()

a template

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

a title

'Not Authenticated'

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.