### Install openconnect-sso with pipx Source: https://github.com/vlaci/openconnect-sso/blob/master/README.md Installs openconnect-sso and its dependencies, including Qt, using pipx. Ensure your PATH is updated to access the installed command. ```shell $ pip install --user pipx Successfully installed pipx $ pipx install "openconnect-sso[full]" ⣾ installing openconnect-sso installed package openconnect-sso 0.4.0, Python 3.7.5 These apps are now globally available - openconnect-sso ⚠️ Note: '/home/vlaci/.local/bin' is not on your PATH environment variable. These apps will not be globally accessible until your PATH is updated. Run `pipx ensurepath` to automatically add it, or manually modify your PATH in your shell's config file (i.e. ~/.bashrc). done! ✨ 🌟 ✨ Successfully installed openconnect-sso $ pipx ensurepath Success! Added /home/vlaci/.local/bin to the PATH environment variable. Consider adding shell completions for pipx. Run 'pipx completions' for instructions. You likely need to open a new terminal or re-login for the changes to take effect. ✨ 🌟 ✨ ``` -------------------------------- ### Install openconnect-sso with Nix (direct) Source: https://github.com/vlaci/openconnect-sso/blob/master/README.md Installs openconnect-sso directly from a tarball of the master branch using nix-env. After installation, the command `openconnect-sso` should be available. ```shell $ nix-env -i -f https://github.com/vlaci/openconnect-sso/archive/master.tar.gz unpacking 'https://github.com/vlaci/openconnect-sso/archive/master.tar.gz'... [...] installing 'openconnect-sso-0.4.0' these derivations will be built: /nix/store/2z47740z1rr2cfqfin5lnq04sq3c5xjg-openconnect-sso-0.4.0.drv [...] building '/nix/store/50q496iqf840wi8b95cfmgn07k6y5b59-user-environment.drv'... created 606 symlinks in user environment $ openconnect-sso ``` -------------------------------- ### Build and Run Project with Nix Source: https://github.com/vlaci/openconnect-sso/blob/master/README.md Commands to build the project using Nix and then run the installed binary. This is useful for testing an installed version of the package. ```shell $ nix build [1 built, 0.0 MiB DL] $ result/bin/openconnect-sso --help ``` -------------------------------- ### Install openconnect-sso on Arch Linux using AUR Source: https://github.com/vlaci/openconnect-sso/blob/master/README.md Installs openconnect-sso on Arch Linux using an AUR helper like yay. ```shell yay -S openconnect-sso ``` -------------------------------- ### Nix configuration.nix for openconnect-sso Source: https://github.com/vlaci/openconnect-sso/blob/master/README.md Example of how to include the openconnect-sso overlay in your NixOS configuration.nix file. ```nix { config, ... }: { nixpkgs.overlays = [ (import "${builtins.fetchTarball https://github.com/vlaci/openconnect-sso/archive/master.tar.gz}/overlay.nix") ]; } ``` -------------------------------- ### Enter Nix Development Shell Source: https://github.com/vlaci/openconnect-sso/blob/master/README.md Use this command to enter a pre-configured development environment for the project. This environment includes all necessary dependencies managed by Nix. ```shell $ nix-shell Sourcing python-catch-conflicts-hook.sh Sourcing python-remove-bin-bytecode-hook.sh Sourcing pip-build-hook Using pipBuildPhase Sourcing pip-install-hook Using pipInstallPhase Sourcing python-imports-check-hook.sh Using pythonImportsCheckPhase Run 'make help' for available commands [nix-shell]$ ``` -------------------------------- ### Basic openconnect-sso usage with server and user Source: https://github.com/vlaci/openconnect-sso/blob/master/README.md Connects to a VPN server, prompting for a password. User credentials are saved to the login keyring if available. ```shell $ openconnect-sso --server vpn.server.com/group --user user@domain.com Password (user@domain.com): [info ] Authenticating to VPN endpoint ... ``` -------------------------------- ### Nix overlay for openconnect-sso Source: https://github.com/vlaci/openconnect-sso/blob/master/README.md Defines an overlay for openconnect-sso to be used in Nix expressions, allowing it to be imported into pkgs. ```nix let openconnectOverlay = import "${builtins.fetchTarball https://github.com/vlaci/openconnect-sso/archive/master.tar.gz}/overlay.nix"; pkgs = import { overlays = [ openconnectOverlay ]; }; in # pkgs.openconnect-sso is available in this context ``` -------------------------------- ### Adding custom openconnect arguments with --base-mtu Source: https://github.com/vlaci/openconnect-sso/blob/master/README.md Connects to a VPN server and passes custom arguments to the underlying openconnect command, such as setting the base MTU to resolve packet size issues. ```shell openconnect-sso --server vpn.server.com/group --user user@domain.com -- --base-mtu=1370 # separator ^^|^^^^^^^^^^^^^^^ openconnect args ``` -------------------------------- ### openconnect-sso configuration for Cisco VPN and TOTP Source: https://github.com/vlaci/openconnect-sso/blob/master/README.md Customizes auto-fill rules in the configuration.toml file for Cisco VPNs and TOTP authentication. It sets a specific selector for the submit action and specifies the 'totp' fill for a telephone input field. ```toml [[auto_fill_rules."https://*"]] selector = "input[data-report-event=Signin_Submit]" action = "click" [[auto_fill_rules."https://*"]] selector = "input[type=tel]" fill = "totp" ``` -------------------------------- ### openconnect-sso usage without server argument Source: https://github.com/vlaci/openconnect-sso/blob/master/README.md Connects to the last used VPN server. The server address is saved between sessions. ```shell $ openconnect-sso [info ] Authenticating to VPN endpoint ... ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.