Call this with something like the following
./my_openconnect \
--authenticate \
--external-browser $(which firefox-nightly) \
-u USERNAME \
--protocol=anyconnect \
--authgroup=AUTH_GROUP \
URL
Note: If you are a University of Glasgow student, the username will be your GUID and the protocol must be anyconnect
.