Rahul Rao
4 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
fastapi/security/oauth2.py
|
|
|
@ -350,7 +350,7 @@ class OAuth2(SecurityBase): |
|
|
|
The dictionary of OAuth2 flows. |
|
|
|
""" |
|
|
|
), |
|
|
|
] = OAuthFlowsModel(), |
|
|
|
] = None, |
|
|
|
scheme_name: Annotated[ |
|
|
|
str | None, |
|
|
|
Doc( |
|
|
|
@ -392,6 +392,8 @@ class OAuth2(SecurityBase): |
|
|
|
), |
|
|
|
] = True, |
|
|
|
): |
|
|
|
if flows is None: |
|
|
|
flows = OAuthFlowsModel() |
|
|
|
self.model = OAuth2Model( |
|
|
|
flows=cast(OAuthFlowsModel, flows), description=description |
|
|
|
) |
|
|
|
|