diff --git a/Cargo.lock b/Cargo.lock index c1b03eb..12993c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -570,7 +570,7 @@ dependencies = [ [[package]] name = "common" -version = "2.3.5" +version = "2.3.6" dependencies = [ "is_executable", ] @@ -1430,7 +1430,7 @@ dependencies = [ [[package]] name = "gpapi" -version = "2.3.5" +version = "2.3.6" dependencies = [ "anyhow", "base64 0.21.5", @@ -1465,7 +1465,7 @@ dependencies = [ [[package]] name = "gpauth" -version = "2.3.5" +version = "2.3.6" dependencies = [ "anyhow", "clap", @@ -1486,7 +1486,7 @@ dependencies = [ [[package]] name = "gpclient" -version = "2.3.5" +version = "2.3.6" dependencies = [ "anyhow", "clap", @@ -1508,7 +1508,7 @@ dependencies = [ [[package]] name = "gpgui-helper" -version = "2.3.5" +version = "2.3.6" dependencies = [ "anyhow", "clap", @@ -1526,7 +1526,7 @@ dependencies = [ [[package]] name = "gpservice" -version = "2.3.5" +version = "2.3.6" dependencies = [ "anyhow", "axum", @@ -2549,7 +2549,7 @@ dependencies = [ [[package]] name = "openconnect" -version = "2.3.5" +version = "2.3.6" dependencies = [ "cc", "common", diff --git a/Cargo.toml b/Cargo.toml index 5d86da3..c98b230 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ members = ["crates/*", "apps/gpclient", "apps/gpservice", "apps/gpauth", "apps/g [workspace.package] rust-version = "1.70" -version = "2.3.5" +version = "2.3.6" authors = ["Kevin Yue "] homepage = "https://github.com/yuezk/GlobalProtect-openconnect" edition = "2021" diff --git a/README.md b/README.md index deacd8f..aa4aeb9 100644 --- a/README.md +++ b/README.md @@ -44,12 +44,20 @@ Options: See 'gpclient help ' for more information on a specific command. ``` -To use the default browser for authentication with the CLI version, you need to use the following command: +To use the external browser for authentication with the CLI version, you need to use the following command: ```bash -sudo -E gpclient connect --default-browser +sudo -E gpclient connect --browser default ``` +Or you can try the following command if the above command does not work: + +```bash +gpauth --browser default 2>/dev/null | sudo gpclient connect --cookie-on-stdin +``` + +You can specify the browser with the `--browser ` option, e.g., `--browser firefox`, `--browser chrome`, etc. + ### GUI The GUI version is also available after you installed it. You can launch it from the application menu or run `gpclient launch-gui` in the terminal. diff --git a/changelog.md b/changelog.md index 02794a1..59e4bbe 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2.3.6 - 2024-08-15 + +- CLI: enhance the `gpauth` command to support external browser authentication +- CLI: add the `--cookie-on-stdin` option to support read the cookie from stdin +- CLI: support usage: `gpauth --browser 2>/dev/null | sudo gpclient connect --cookie-on-stdin` +- CLI: fix the `--browser ` option not working + ## 2.3.5 - 2024-08-14 - Support configure `no-dtls` option