mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-07 02:56:41 +00:00
* Update __init__.py Fixes an import error: from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestFormStrict ImportError: cannot import name 'OAuth2PasswordRequestFormStrict' * Simplify import of OAuth2PasswordRequestFormStrict * Simplify import of OAuth2PasswordRequestFormStrict
17 lines
422 B
Python
17 lines
422 B
Python
from .api_key import APIKeyCookie, APIKeyHeader, APIKeyQuery
|
|
from .http import (
|
|
HTTPAuthorizationCredentials,
|
|
HTTPBasic,
|
|
HTTPBasicCredentials,
|
|
HTTPBearer,
|
|
HTTPDigest,
|
|
)
|
|
from .oauth2 import (
|
|
OAuth2,
|
|
OAuth2AuthorizationCodeBearer,
|
|
OAuth2PasswordBearer,
|
|
OAuth2PasswordRequestForm,
|
|
OAuth2PasswordRequestFormStrict,
|
|
SecurityScopes,
|
|
)
|
|
from .open_id_connect_url import OpenIdConnect
|