mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-06 02:26:46 +00:00
* ✨ Upgrade OAuth2 Security with scopes handling * 📝 Update Security tutorial with OAuth2 and JWT * ✨ Add tutorial code for OAuth2 with scopes (and JWT) * ✅ Add tests for tutorial/OAuth2 with scopes * 🐛 Fix security_scopes type declaration * ✨ Add docs and tests for SecurityScopes
15 lines
350 B
Python
15 lines
350 B
Python
from .api_key import APIKeyCookie, APIKeyHeader, APIKeyQuery
|
|
from .http import (
|
|
HTTPAuthorizationCredentials,
|
|
HTTPBasic,
|
|
HTTPBasicCredentials,
|
|
HTTPBearer,
|
|
HTTPDigest,
|
|
)
|
|
from .oauth2 import (
|
|
OAuth2,
|
|
OAuth2PasswordBearer,
|
|
OAuth2PasswordRequestForm,
|
|
SecurityScopes,
|
|
)
|
|
from .open_id_connect_url import OpenIdConnect
|