"""Utility Functions for Handlers.""" from product_workflow.constants import authorization def is_identity_authorized(identity_id): """Check if an identity has access to an endpoint. Args: jwt_identity_id (str): The identity UUID. Returns: bool: True if the identity is authorized """ return identity_id in authorization.AUTHORIZED_IDENTITIES