fastapi/fastapi/security/open_id_connect_url.py
Sebastián Ramírez 406c092a3b 🎉 Start tracking messy initial stage
...before refactoring and breaking something
2018-12-05 10:56:50 +04:00

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")