imaging_api.utils.auth ====================== .. py:module:: imaging_api.utils.auth Attributes ---------- .. autoapisummary:: imaging_api.utils.auth.xnat_token_factory Functions --------- .. autoapisummary:: imaging_api.utils.auth.get_xnat_auth_headers Module Contents --------------- .. py:data:: xnat_token_factory .. py:function:: get_xnat_auth_headers() -> dict[str, str] Retrieves the XNAT authentication token and formats it into the appropriate headers for API requests. :returns: A dictionary containing XNAT authentication headers. :rtype: dict[str, str]