Exceptions

All exceptions are subclasses of falcon HTTPUnauthorized.

class falcon_auth2.AuthenticationFailure(title=None, description=None, headers=None, challenges=None, **kwargs)[source]

Raised when an authentication backend fails to authenticate a syntactically correct request.

This will terminate the request with status 401 if no other logic is present.

class falcon_auth2.BackendNotApplicable(title=None, description=None, headers=None, challenges=None, **kwargs)[source]

Raised when a request is not understood by an authentication backend. This may indicate that the request is intended for another backend.

This will terminate the request with status 401 if no other logic is present.

class falcon_auth2.UserNotFound(title=None, description=None, headers=None, challenges=None, **kwargs)[source]

Raised when the user_loader callable of an authentication backend cannot load an user with the received payload. This may indicate that the request is intended for another backend.

This will terminate the request with status 401 if no other logic is present.