Explore
Sign In
skills/fastapi__fastapi
1
0
Fork 0
You've already forked fastapi__fastapi
mirror of https://github.com/fastapi/fastapi.git synced 2026-09-14 13:36:21 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
master
fastapi__fastapi/fastapi/security/utils.py
T

8 lines
261 B
Python
Raw Permalink Normal View History

⬆ Upgrade Starlette to `0.21.0`, including the new [`TestClient` based on HTTPX](https://github.com/encode/starlette/releases/tag/0.21.0) (#5471) Co-authored-by: Paweł Rubin <pawel.rubin@ocado.com> Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2022-11-13 15:26:09 +01:00
def get_authorization_scheme_param(
🎨 Update internal types for Python 3.10 (#14898)
2026-02-11 10:41:21 -08:00
authorization_header_value: str | None,
♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564)
2025-12-17 13:25:59 -08:00
) -> tuple[str, str]:
:sparkles: Improve security utilities and add tests
2018-12-28 20:35:48 +04:00
if not authorization_header_value:
return "", ""
scheme, _, param = authorization_header_value.partition(" ")
🐛 Strip whitespaces from `Authorization` header credentials (#14786)
2026-02-04 14:46:46 +01:00
return scheme, param.strip()
Reference in New Issue Copy Permalink
Version: v1.25.5 Page: 85ms Template: 2ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어