mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-09 03:56:45 +00:00
10 lines
273 B
Python
10 lines
273 B
Python
from starlette.requests import Request
|
|
|
|
from .base import SecurityBase, Types
|
|
|
|
class OpenIdConnect(SecurityBase):
|
|
type_ = Types.openIdConnect
|
|
openIdConnectUrl: str
|
|
|
|
async def __call__(self, request: Request):
|
|
return request.headers.get("Authorization")
|