AuthXConfig
authx.config.AuthXConfig
Bases: BaseSettings
AuthX Base Configuration Object
PARAMETER | DESCRIPTION |
---|---|
BaseSettings |
BaseSettings class from Pydantic
TYPE:
|
RAISES | DESCRIPTION |
---|---|
BadConfigurationError
|
If JWT_ALGORITHM is not supported |
BadConfigurationError
|
If JWT_ALGORITHM requires a key and it is not set |
RETURNS | DESCRIPTION |
---|---|
AuthXConfig
|
AuthX Configuration Object |
JWT_ACCESS_TOKEN_EXPIRES
class-attribute
instance-attribute
JWT_DECODE_ALGORITHMS
class-attribute
instance-attribute
JWT_REFRESH_TOKEN_EXPIRES
class-attribute
instance-attribute
JWT_ACCESS_COOKIE_NAME
class-attribute
instance-attribute
JWT_REFRESH_COOKIE_NAME
class-attribute
instance-attribute
JWT_ACCESS_CSRF_COOKIE_NAME
class-attribute
instance-attribute
JWT_ACCESS_CSRF_FIELD_NAME
class-attribute
instance-attribute
JWT_ACCESS_CSRF_HEADER_NAME
class-attribute
instance-attribute
JWT_CSRF_METHODS
class-attribute
instance-attribute
JWT_REFRESH_CSRF_COOKIE_NAME
class-attribute
instance-attribute
JWT_REFRESH_CSRF_FIELD_NAME
class-attribute
instance-attribute
JWT_REFRESH_CSRF_HEADER_NAME
class-attribute
instance-attribute
JWT_IMPLICIT_REFRESH_ROUTE_EXCLUDE
class-attribute
instance-attribute
JWT_IMPLICIT_REFRESH_ROUTE_INCLUDE
class-attribute
instance-attribute
JWT_IMPLICIT_REFRESH_METHOD_EXCLUDE
class-attribute
instance-attribute
JWT_IMPLICIT_REFRESH_METHOD_INCLUDE
class-attribute
instance-attribute
JWT_IMPLICIT_REFRESH_DELTATIME
class-attribute
instance-attribute
is_algo_symmetric
property
Check if the JWT_ALGORITHM is a symmetric encryption algorithm
is_algo_asymmetric
property
Check if the JWT_ALGORITHM is an asymmetric encryption algorithm