sanic_jwt_extended.exceptions module

exception sanic_jwt_extended.exceptions.AccessDenied[source]

Bases: sanic_jwt_extended.exceptions.JWTExtendedException

exception sanic_jwt_extended.exceptions.ConfigurationConflictError[source]

Bases: sanic_jwt_extended.exceptions.JWTExtendedException

Error raised when trying to use allow and deny option together in jwt_required

exception sanic_jwt_extended.exceptions.FreshTokenRequired[source]

Bases: sanic_jwt_extended.exceptions.JWTExtendedException

Error raised when a valid, non-fresh JWT attempt to access an endpoint protected by fresh_jwt_required

exception sanic_jwt_extended.exceptions.InvalidHeaderError[source]

Bases: sanic_jwt_extended.exceptions.JWTExtendedException

An error getting header information from a request

exception sanic_jwt_extended.exceptions.JWTDecodeError[source]

Bases: sanic_jwt_extended.exceptions.JWTExtendedException

An error decoding a JWT

exception sanic_jwt_extended.exceptions.JWTExtendedException[source]

Bases: Exception

Base except which all sanic_jwt_extended errors extend

exception sanic_jwt_extended.exceptions.NoAuthorizationError[source]

Bases: sanic_jwt_extended.exceptions.JWTExtendedException

An error raised when no authorization token was found in a protected endpoint

exception sanic_jwt_extended.exceptions.RevokedTokenError[source]

Bases: sanic_jwt_extended.exceptions.JWTExtendedException

Error raised when a revoked token attempt to access a protected endpoint

exception sanic_jwt_extended.exceptions.WrongTokenError[source]

Bases: sanic_jwt_extended.exceptions.JWTExtendedException

Error raised when attempting to use a refresh token to access an endpoint or vice versa