mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Compare commits
No commits in common. "ddeef46d2ed824d3349441f34fe864cb60c16364" and "546dbf542eb71421c3b0f1817efa214952bcc881" have entirely different histories.
ddeef46d2e
...
546dbf542e
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1439,7 +1439,6 @@ dependencies = [
|
|||||||
"dotenvy_macro",
|
"dotenvy_macro",
|
||||||
"log",
|
"log",
|
||||||
"md5",
|
"md5",
|
||||||
"open",
|
|
||||||
"redact-engine",
|
"redact-engine",
|
||||||
"regex",
|
"regex",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
@ -1471,6 +1470,7 @@ dependencies = [
|
|||||||
"gpapi",
|
"gpapi",
|
||||||
"html-escape",
|
"html-escape",
|
||||||
"log",
|
"log",
|
||||||
|
"open",
|
||||||
"regex",
|
"regex",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"tauri",
|
"tauri",
|
||||||
|
@ -44,6 +44,7 @@ compile-time = "0.2"
|
|||||||
serde_urlencoded = "0.7"
|
serde_urlencoded = "0.7"
|
||||||
md5="0.7"
|
md5="0.7"
|
||||||
sha256="1"
|
sha256="1"
|
||||||
|
open = "5"
|
||||||
|
|
||||||
# Tauri dependencies
|
# Tauri dependencies
|
||||||
tauri = { version = "1.5" }
|
tauri = { version = "1.5" }
|
||||||
|
30
README.md
30
README.md
@ -43,12 +43,6 @@ Options:
|
|||||||
See 'gpclient help <command>' for more information on a specific command.
|
See 'gpclient help <command>' 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:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo -E gpclient connect --default-browser <portal>
|
|
||||||
```
|
|
||||||
|
|
||||||
### GUI
|
### 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.
|
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.
|
||||||
@ -143,30 +137,6 @@ Download the latest RPM package from [releases](https://github.com/yuezk/GlobalP
|
|||||||
```bash
|
```bash
|
||||||
sudo rpm -i globalprotect-openconnect-*.rpm
|
sudo rpm -i globalprotect-openconnect-*.rpm
|
||||||
```
|
```
|
||||||
### Gentoo
|
|
||||||
|
|
||||||
Install from the ```rios``` or ```slonko``` overlays. Example using rios:
|
|
||||||
|
|
||||||
#### 1. Enable the overlay
|
|
||||||
```
|
|
||||||
sudo eselect repository enable rios
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 2. Sync with the repository
|
|
||||||
|
|
||||||
- If you have eix installed, use it:
|
|
||||||
```
|
|
||||||
sudo eix-sync
|
|
||||||
```
|
|
||||||
- Otherwise, use:
|
|
||||||
```
|
|
||||||
sudo emerge --sync
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 3. Install
|
|
||||||
|
|
||||||
```sudo emerge globalprotect-openconnect```
|
|
||||||
|
|
||||||
|
|
||||||
### Other distributions
|
### Other distributions
|
||||||
|
|
||||||
|
@ -8,11 +8,7 @@ license.workspace = true
|
|||||||
tauri-build = { version = "1.5", features = [] }
|
tauri-build = { version = "1.5", features = [] }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
gpapi = { path = "../../crates/gpapi", features = [
|
gpapi = { path = "../../crates/gpapi", features = ["tauri", "clap"] }
|
||||||
"tauri",
|
|
||||||
"clap",
|
|
||||||
"browser-auth",
|
|
||||||
] }
|
|
||||||
anyhow.workspace = true
|
anyhow.workspace = true
|
||||||
clap.workspace = true
|
clap.workspace = true
|
||||||
env_logger.workspace = true
|
env_logger.workspace = true
|
||||||
@ -26,3 +22,4 @@ html-escape = "0.2.13"
|
|||||||
webkit2gtk = "0.18.2"
|
webkit2gtk = "0.18.2"
|
||||||
tauri = { workspace = true, features = ["http-all"] }
|
tauri = { workspace = true, features = ["http-all"] }
|
||||||
compile-time.workspace = true
|
compile-time.workspace = true
|
||||||
|
open.workspace = true
|
||||||
|
@ -3,7 +3,6 @@ use gpapi::{
|
|||||||
auth::{SamlAuthData, SamlAuthResult},
|
auth::{SamlAuthData, SamlAuthResult},
|
||||||
clap::args::Os,
|
clap::args::Os,
|
||||||
gp_params::{ClientOs, GpParams},
|
gp_params::{ClientOs, GpParams},
|
||||||
process::browser_authenticator::BrowserAuthenticator,
|
|
||||||
utils::{normalize_server, openssl},
|
utils::{normalize_server, openssl},
|
||||||
GP_USER_AGENT,
|
GP_USER_AGENT,
|
||||||
};
|
};
|
||||||
@ -12,7 +11,10 @@ use serde_json::json;
|
|||||||
use tauri::{App, AppHandle, RunEvent};
|
use tauri::{App, AppHandle, RunEvent};
|
||||||
use tempfile::NamedTempFile;
|
use tempfile::NamedTempFile;
|
||||||
|
|
||||||
use crate::auth_window::{portal_prelogin, AuthWindow};
|
use crate::{
|
||||||
|
auth_window::{portal_prelogin, AuthWindow},
|
||||||
|
browser_authenticator::BrowserAuthenticator,
|
||||||
|
};
|
||||||
|
|
||||||
const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), " (", compile_time::date_str!(), ")");
|
const VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), " (", compile_time::date_str!(), ")");
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||||
|
|
||||||
mod auth_window;
|
mod auth_window;
|
||||||
|
mod browser_authenticator;
|
||||||
mod cli;
|
mod cli;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
|
@ -31,9 +31,7 @@ sha256.workspace = true
|
|||||||
|
|
||||||
tauri = { workspace = true, optional = true }
|
tauri = { workspace = true, optional = true }
|
||||||
clap = { workspace = true, optional = true }
|
clap = { workspace = true, optional = true }
|
||||||
open = { version = "5", optional = true }
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
tauri = ["dep:tauri"]
|
tauri = ["dep:tauri"]
|
||||||
clap = ["dep:clap"]
|
clap = ["dep:clap"]
|
||||||
browser-auth = ["dep:open"]
|
|
||||||
|
@ -2,8 +2,6 @@ pub(crate) mod command_traits;
|
|||||||
pub(crate) mod gui_helper_launcher;
|
pub(crate) mod gui_helper_launcher;
|
||||||
|
|
||||||
pub mod auth_launcher;
|
pub mod auth_launcher;
|
||||||
#[cfg(feature = "browser-auth")]
|
|
||||||
pub mod browser_authenticator;
|
|
||||||
pub mod gui_launcher;
|
pub mod gui_launcher;
|
||||||
pub mod hip_launcher;
|
pub mod hip_launcher;
|
||||||
pub mod service_launcher;
|
pub mod service_launcher;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user