Files
zenml/venv/lib/python3.9/site-packages/fastapi/security/utils.py
Christian Mantha 2ca0b9ef7c star
2026-03-02 19:10:52 -05:00

11 lines
294 B
Python

from typing import Optional
def get_authorization_scheme_param(
authorization_header_value: Optional[str],
) -> tuple[str, str]:
if not authorization_header_value:
return "", ""
scheme, _, param = authorization_header_value.partition(" ")
return scheme, param.strip()