Skip to content
  • Andrey Azeev's avatar
    5e4ea85e
    refactor: simplify create_technical_auth_hook to plain closure · 5e4ea85e
    Andrey Azeev authored
    Drop chain= and cache_token= parameters. Hook now mirrors the style of
    lucente_observability.request_id_hook: a sync closure that calls
    create_technical_auth_header on every invocation and writes the result
    into kwargs["headers"]["Authorization"]. Composition with other hooks
    is the caller's concern.
    5e4ea85e
    refactor: simplify create_technical_auth_hook to plain closure
    Andrey Azeev authored
    Drop chain= and cache_token= parameters. Hook now mirrors the style of
    lucente_observability.request_id_hook: a sync closure that calls
    create_technical_auth_header on every invocation and writes the result
    into kwargs["headers"]["Authorization"]. Composition with other hooks
    is the caller's concern.
Loading