mirror of
https://github.com/d3vyce/fastapi-toolsets.git
synced 2026-04-16 06:36:26 +02:00
25 lines
608 B
Python
25 lines
608 B
Python
"""Authentication helpers for FastAPI using Security()."""
|
|
|
|
from .abc import AuthSource
|
|
from .oauth import (
|
|
oauth_build_authorization_redirect,
|
|
oauth_decode_state,
|
|
oauth_encode_state,
|
|
oauth_fetch_userinfo,
|
|
oauth_resolve_provider_urls,
|
|
)
|
|
from .sources import APIKeyHeaderAuth, BearerTokenAuth, CookieAuth, MultiAuth
|
|
|
|
__all__ = [
|
|
"APIKeyHeaderAuth",
|
|
"AuthSource",
|
|
"BearerTokenAuth",
|
|
"CookieAuth",
|
|
"MultiAuth",
|
|
"oauth_build_authorization_redirect",
|
|
"oauth_decode_state",
|
|
"oauth_encode_state",
|
|
"oauth_fetch_userinfo",
|
|
"oauth_resolve_provider_urls",
|
|
]
|