Skip to content

Commit cd0542b

Browse files
committed
replace undefined bearer_scheme with security
Signed-off-by: Shoumi <shoumimukherjee@gmail.com>
1 parent e62d740 commit cd0542b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcpgateway/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ async def get_team_from_token(payload: Dict[str, Any], db: Session) -> Optional[
171171

172172

173173
async def get_current_user(
174-
credentials: Optional[HTTPAuthorizationCredentials] = Depends(bearer_scheme),
174+
credentials: Optional[HTTPAuthorizationCredentials] = Depends(security),
175175
db: Session = Depends(get_db),
176176
request: Optional[object] = None,
177177
) -> EmailUser:

0 commit comments

Comments
 (0)