Prompt user for parameter values before running blocks in debugger (#SKY-6097) (#4668)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user