go-opensaml
Retrieve SAML token using default external browser and write it to stdin.
Using go browser pkg
Usage
go-opensaml -s <server> [-p <port>] [-r <realm>] [-t]
Usage of ./opensaml:
-p, --port int Port to connect to (default 8020)
-r, --realm string Realm to authenticate to
-s, --server string Server to connect to
-t, --trust-all Trust all certificates
Using wth openfortivpn
bash
srv=<server-url>; go-opensaml -s $srv | sudo openfortivpn $srv --cookie-on-stdin
fish
set srv <server-url>; go-opensaml -s $srv | sudo openfortivpn $srv --cookie-on-stdin
Build Locally
For local build, run task build:
task build
Binary file will be created in bin directory.