fix: correct direct gateway browser auth mode

This commit is contained in:
Kevin Yue committed 2026-06-22 08:24:48 +08:00
1 parent dc7a200b93
commit 40739739b5
9 files changed
+21 -22

No files matched your search

+2 -2
View File
@@ -139,8 +139,8 @@ impl ConnectHandler<'_> {
let mut gp_params = self.build_gp_params();
gp_params.set_is_gateway(true);
let prelogin = prelogin(gateway, &gp_params, self.prelogin_options(false)).await?;
let cred = self.obtain_credential(&prelogin, gateway, false).await?;
let prelogin = prelogin(gateway, &gp_params, self.prelogin_options(true)).await?;
let cred = self.obtain_credential(&prelogin, gateway, true).await?;
let login_session = self
.login_gateway(gateway, &cred, &gp_params, gateway_context.as_ref())