Mabasej_Team/.venv/lib/python3.9/site-packages/fastapi/security/utils.py

9 lines
266 B
Python
Raw Normal View History

2021-03-17 08:57:57 +01:00
from typing import Tuple
def get_authorization_scheme_param(authorization_header_value: str) -> Tuple[str, str]:
if not authorization_header_value:
return "", ""
scheme, _, param = authorization_header_value.partition(" ")
return scheme, param