yuezk / GlobalProtect-openconnect

A GlobalProtect VPN client for Linux, written in Rust, based on OpenConnect and Tauri, supports SSO with MFA, Yubikey, and client certificate authentication, etc.
GNU General Public License v3.0
1.39k stars 154 forks source link

Save the credentials after first login on CLI agent #355

Open aritroCoder opened 6 months ago

aritroCoder commented 6 months ago

Although it saves the credentials for the GUI version, the CLI lacks the saved credentials capability which is an hinderence and should be fixed.

yuezk commented 2 months ago

In 2.3.7, you can save the credentials get from gpauth <portal> to a file and pipe it to the gpclient with sudo gpclient connect <portal> --cookie-on-stdin.