We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Authorization
1 parent 3d8c544 commit 973fc10Copy full SHA for 973fc10
src/fastapi_oauth2/middleware.py
@@ -85,7 +85,10 @@ def __init__(self, config: OAuth2Config) -> None:
85
Auth.register_client(client)
86
87
async def authenticate(self, request: Request) -> Optional[Tuple["Auth", "User"]]:
88
- authorization = request.cookies.get("Authorization")
+ authorization = request.headers.get(
89
+ "Authorization",
90
+ request.cookies.get("Authorization"),
91
+ )
92
scheme, param = get_authorization_scheme_param(authorization)
93
94
if not scheme or not param:
0 commit comments