refactor: refine the SAML login workflow

This commit is contained in:
Kevin Yue
2023-05-28 18:56:25 +08:00
parent 89eb42ceac
commit 75db9e162f
2 changed files with 71 additions and 24 deletions

View File

@@ -40,7 +40,14 @@ async fn saml_login(
app_handle: AppHandle,
) -> tauri::Result<Option<AuthData>> {
let ua = "PAN GlobalProtect";
auth::saml_login(AuthRequest::new(binding, request), ua, &app_handle).await
let clear_cookies = false;
auth::saml_login(
AuthRequest::new(binding, request),
ua,
clear_cookies,
&app_handle,
)
.await
}
#[derive(Debug, Clone, Serialize)]