Skip to content

Commit

Permalink
Add scope inheritance fix from pr tiangolo#5624
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjanvalur committed Nov 22, 2022
1 parent 4638b2c commit 8b19290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi/dependencies/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def get_sub_dependant(
security_scopes = security_scopes or []
if isinstance(depends, params.Security):
dependency_scopes = depends.scopes
security_scopes.extend(dependency_scopes)
security_scopes = security_scopes + list(dependency_scopes)
if isinstance(dependency, SecurityBase):
use_scopes: List[str] = []
if isinstance(dependency, (OAuth2, OpenIdConnect)):
Expand Down

0 comments on commit 8b19290

Please sign in to comment.