Prompt user for parameter values before running blocks in debugger (#SKY-6097) (#4668)

This commit is contained in:
Celal Zamanoglu
2026-02-09 20:42:57 +03:00
committed by GitHub
parent 94bf5385dc
commit 7e6dfcc6d1
5 changed files with 345 additions and 7 deletions

View File

@@ -130,9 +130,11 @@ async def get_current_user_id(
x_api_key: Annotated[str | None, Header(include_in_schema=False)] = None,
x_user_agent: Annotated[str | None, Header(include_in_schema=False)] = None,
) -> str:
if authorization:
# Try authorization header first, but only if the authentication function is configured
if authorization and app.authenticate_user_function:
return await _authenticate_user_helper(authorization)
# Fall back to API key + skyvern-ui user agent
if x_api_key and x_user_agent == "skyvern-ui":
organization = await _get_current_org_cached(x_api_key, app.DATABASE)
if organization: