mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 14:36:15 -05:00
Main changes: - Refactor connect/auth flows around a single OS profile and host identity model, including gateway fallback and cookie-on-stdin handling. - Align request parameters, HIP host-id propagation, SAML webview user-agent behavior, and portal default-browser handling with observed official client behavior. - Add opt-in cookie cache support and Microsoft Defender HIP reporting while keeping host-id validation explicit. - Add BSD build, packaging, release artifact, and provenance support with FreeBSD/OpenBSD path and dependency cleanup. - Update NixOS install documentation and dependency compatibility fixes.
61 lines
1.5 KiB
TOML
61 lines
1.5 KiB
TOML
[package]
|
|
name = "auth"
|
|
rust-version.workspace = true
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
homepage.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
common = { path = "../common" }
|
|
gpapi = { path = "../gpapi" }
|
|
|
|
# Shared dependencies
|
|
anyhow.workspace = true
|
|
log.workspace = true
|
|
tokio.workspace = true
|
|
|
|
# Browser auth dependencies
|
|
webbrowser = { version = "1", optional = true }
|
|
open = { version = "5", optional = true }
|
|
which = { workspace = true, optional = true }
|
|
tiny_http = { version = "0.12", optional = true }
|
|
uuid = { version = "1", optional = true, features = ["v4"] }
|
|
|
|
# Webview auth dependencies
|
|
tauri = { workspace = true, optional = true }
|
|
regex = { workspace = true, optional = true }
|
|
tokio-util = { workspace = true, optional = true }
|
|
html-escape = { version = "0.2.13", optional = true }
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"))'.dependencies]
|
|
webkit2gtk = { version = "2", optional = true }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
block2 = { version = "0.6", optional = true }
|
|
objc2 = { version = "0.6", optional = true }
|
|
objc2-foundation = { version = "0.3", optional = true }
|
|
objc2-web-kit = { version = "0.3", optional = true }
|
|
|
|
[features]
|
|
browser-auth = [
|
|
"dep:webbrowser",
|
|
"dep:open",
|
|
"dep:which",
|
|
"dep:tiny_http",
|
|
"dep:uuid",
|
|
]
|
|
webview-auth = [
|
|
"gpapi/tauri",
|
|
"dep:tauri",
|
|
"dep:regex",
|
|
"dep:tokio-util",
|
|
"dep:html-escape",
|
|
"dep:webkit2gtk",
|
|
"dep:block2",
|
|
"dep:objc2",
|
|
"dep:objc2-foundation",
|
|
"dep:objc2-web-kit",
|
|
]
|