Skip to content

Commit f2e2390

Browse files
lmignonrven
authored andcommitted
[FIX] fastapi: authenticate in a non-interactive mode
1 parent a841024 commit f2e2390

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fastapi/dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def basic_auth_user(
127127
"login": username,
128128
"password": password,
129129
},
130-
user_agent_env=None,
130+
user_agent_env={"interactive": False},
131131
)
132132
)
133133
return env["res.users"].browse(response.get("uid"))

0 commit comments

Comments
 (0)