e6c8cb9ce6
Co-Authored-By: Claude Code <noreply@anthropic.com>
11 lines
294 B
Python
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()
|