module documentation

Undocumented

Class DefaultTokenVersionExtractor Undocumented
Class TokenSanitizer Undocumented
Class TokenVersion Undocumented
Class TokenVersionExtractor Undocumented
Function sanitize_no_signature Undocumented
Function sanitize_unrecognized Undocumented
Constant ACCESS_TOKEN_VERSIONS Undocumented
Constant CREDENTIALS_VERSIONS Undocumented
Constant MASK_STRING Undocumented
Constant MAX_VISIBLE_PAYLOAD_LENGTH Undocumented
Constant NO_SIGNATURE Undocumented
def sanitize_no_signature(token: str, prefix: str) -> str: (source)

Undocumented

def sanitize_unrecognized(token: str) -> str: (source)

Undocumented

ACCESS_TOKEN_VERSIONS: dict[str, TokenVersion] = (source)

Undocumented

Value
{'V0': TokenVersion(prefix='v0.',
                    delimiter='.',
                    signature_position=NO_SIGNATURE,
                    token_parts_count=1),
 'NE1': TokenVersion(prefix='ne1',
                     delimiter='.',
                     signature_position=1,
...
CREDENTIALS_VERSIONS: dict[str, TokenVersion] = (source)

Undocumented

Value
{**ACCESS_TOKEN_VERSIONS,
 'DE1': TokenVersion(prefix='nd1',
                     delimiter='.',
                     signature_position=1,
                     token_parts_count=2),
 'JWT': TokenVersion(prefix='eyJ',
                     delimiter='.',
...
MASK_STRING: str = (source)

Undocumented

Value
'**'
MAX_VISIBLE_PAYLOAD_LENGTH: int = (source)

Undocumented

Value
15
NO_SIGNATURE: int = (source)

Undocumented

Value
-1