fix(openconnect): ugent sso

This commit is contained in:
Tibo De Peuter 2026-09-29 20:56:57 +02:00
parent 6224eafa70
commit b92a2fb821
Signed by: tdpeuter
SSH key fingerprint: SHA256:u/h/LVoqKF1Iz02uOyxe6hcjmoZASCGV2HM0TG9ZMoU
7 changed files with 41 additions and 17 deletions

View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e
echo 'Starting UGent SSO authentication...'
eval "$( openconnect --authenticate --protocol=anyconnect vpn.ugent.be )"
if [ -z "${COOKIE}" ]; then
echo 'Authentication failed or was aborted.'
exit 1
fi
echo 'Authentication successful. Establishing tunnel...'
sudo openconnect --protocol=anyconnect --cookie="${COOKIE}" "${CONNECT_URL}" --servercert="${FINGERPRINT}" --resolve="${RESOLVE}"