INNER CODE UNIT · Python
jwt_in_headers
IndominusByte/fastapi-jwt-auth · fastapi_jwt_auth/auth_config.py:52
def jwt_in_headers(self) -> bool:
return 'headers' in self._token_location
@classmethod
def load_config(cls, settings: Callable[...,List[tuple]]) -> "AuthConfig":
try:
config = LoadConfig(**{key.lower():value for key,value in settings()})
cls._token_location = config.authjwt_token_location
cls._secret_key = config.authjwt_secret_key
cls._public_key = config.authjwt_public_key
cls._private_key = config.authjwt_private_key
cls._algorithm = config.authjwt_algorithm
cls._decode_algorithms = config.authjwt_decode_algorithms
cls._decode_leeway = config.authjwt_decode_leeway
cls._encode_issuer = config.authjwt_encode_issuer
cls._decode_issuer = config.authjwt_decode_issuer
cls._decode_audience = config.authjwt_decode_audience