backport remote browser and arm64 runner updates

This commit is contained in:
Kevin Yue committed 2026-04-18 22:54:25 +08:00
1 parent 19106150dd
commit 2576b08a89
6 files changed
+168 -9

No files matched your search

+7 -2
View File
@@ -73,7 +73,7 @@ struct Cli {
#[arg(
long,
help = "The browser to use for authentication, e.g., `default`, `firefox`, `chrome`, `chromium`, or the path to the browser executable"
help = "The browser to use for authentication, e.g., `default`, `firefox`, `chrome`, `chromium`, `remote`, or the path to the browser executable. Use `remote` for headless servers"
)]
browser: Option<String>,
}
@@ -104,7 +104,12 @@ impl Cli {
};
if let Some(browser_auth) = browser_auth {
browser_auth.authenticate()?;
if let Some(auth_data) = browser_auth.authenticate()? {
info!("Authentication completed");
println!("{}", json!(SamlAuthResult::Success(auth_data)));
return Ok(());
}
info!("Please continue the authentication process in the default browser");
+1 -1
View File
@@ -104,7 +104,7 @@ pub(crate) struct ConnectArgs {
#[arg(
long,
help = "Use the specified browser to authenticate, e.g., `default`, `firefox`, `chrome`, `chromium`, or the path to the browser executable"
help = "Use the specified browser to authenticate, e.g., `default`, `firefox`, `chrome`, `chromium`, `remote`, or the path to the browser executable. Use `remote` for headless servers"
)]
browser: Option<String>,
}