Classes | |
| class | _PyJWSWithLoadCache |
| class | _PyJWTWithVerify |
Functions | |
| dict[str, Any] | _decode_payload (str json_payload) |
Variables | |
| list | __all__ |
| _jws = _PyJWSWithLoadCache() | |
| _jwt = _PyJWTWithVerify() | |
| dictionary | _NO_VERIFY_OPTIONS = {f"verify_{key}": False for key in _VERIFY_KEYS} |
| tuple | _VERIFY_KEYS = ("signature", "exp", "nbf", "iat", "aud", "iss", "sub", "jti") |
| int | JWT_TOKEN_CACHE_SIZE = 16 |
| int | MAX_TOKEN_SIZE = 8192 |
| unverified_hs256_token_decode | |
| verify_and_decode = _jwt.verify_and_decode | |
Provide a wrapper around JWT that caches decoding tokens. Since we decode the same tokens over and over again we can cache the result of the decode of valid tokens to speed up the process.
|
private |
Decode the payload from a JWS dictionary.
Definition at line 45 of file jwt_wrapper.py.
|
private |
Definition at line 114 of file jwt_wrapper.py.
|
private |
Definition at line 41 of file jwt_wrapper.py.
|
private |
Definition at line 106 of file jwt_wrapper.py.
|
private |
Definition at line 26 of file jwt_wrapper.py.
|
private |
Definition at line 21 of file jwt_wrapper.py.
| int homeassistant.auth.jwt_wrapper.JWT_TOKEN_CACHE_SIZE = 16 |
Definition at line 18 of file jwt_wrapper.py.
| int homeassistant.auth.jwt_wrapper.MAX_TOKEN_SIZE = 8192 |
Definition at line 19 of file jwt_wrapper.py.
| homeassistant.auth.jwt_wrapper.unverified_hs256_token_decode |
Definition at line 108 of file jwt_wrapper.py.
| homeassistant.auth.jwt_wrapper.verify_and_decode = _jwt.verify_and_decode |
Definition at line 107 of file jwt_wrapper.py.