Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for openfortivpn's --cookie option #173

Open
xulongwu4 opened this issue Jul 31, 2022 · 2 comments
Open

Support for openfortivpn's --cookie option #173

xulongwu4 opened this issue Jul 31, 2022 · 2 comments

Comments

@xulongwu4
Copy link

The openfortivpn repo has added the --cookie option to support SAML: adrienverge/openfortivpn#867

Does this gui tool support using that as the login option?

@DimitriPapadopoulos
Copy link
Contributor

DimitriPapadopoulos commented Dec 19, 2022

@xulongwu4 What exactly is your use case? Would starting an integrated web browser window for SAML/SSO login to get the VPN session cookie answer you needs?

See #186.

@filippor
Copy link

For external browser I implemented a script to retrieve token on repository https://github.com/filippor/XdgOpenSaml
the process is
1 start a server to listen on localhost:8020/?id=
2 open in external browser url + "/remote/saml/start?redirect=1"
3 server receive a call and with retieved id call url + "/remote/saml/auth_id?id=" + id to retrieve cookie

you can see a sample implementation in this repo https://github.com/filippor/XdgOpenSaml/blob/main/XdgOpenSaml.java that write the cookie to standard out like openfortivpn-webview

XdgOpenSaml url:port | sudo openfortivpn url:port --cookie-on-stdin --pppd-use-peerdns=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants