INNER CODE UNIT · Python

load_config

IndominusByte/fastapi-jwt-auth · fastapi_jwt_auth/auth_config.py:56

    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
            cls._denylist_enabled = config.authjwt_denylist_enabled
            cls._denylist_token_checks = config.authjwt_denylist_token_checks
            cls._header_name = config.authjwt_header_name
            cls._header_type = config.authjwt_header_type

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…