authentik.providers.saml.utils

Small helper functions

 1"""Small helper functions"""
 2
 3import uuid
 4
 5
 6def get_random_id() -> str:
 7    """Random hex id"""
 8    # It is very important that these random IDs NOT start with a number.
 9    random_id = "_" + uuid.uuid4().hex
10    return random_id
def get_random_id() -> str:
 7def get_random_id() -> str:
 8    """Random hex id"""
 9    # It is very important that these random IDs NOT start with a number.
10    random_id = "_" + uuid.uuid4().hex
11    return random_id

Random hex id