mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-10 18:08:08 -04:00
Co-authored-by: Paweł Rubin <pawel.rubin@ocado.com> Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
11 lines
293 B
Python
11 lines
293 B
Python
from typing import Optional, Tuple
|
|
|
|
|
|
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
|