https://github.com/theurichde/go-openconnect-sso
Support 2FA/MFA for openconnect clients
https://github.com/theurichde/go-openconnect-sso
2fa 2factor azuread mfa openconnect sso sso-authentication vpn
Last synced: 5 months ago
JSON representation
Support 2FA/MFA for openconnect clients
- Host: GitHub
- URL: https://github.com/theurichde/go-openconnect-sso
- Owner: theurichde
- License: gpl-3.0
- Archived: true
- Fork: true (rustycl0ck/go-openconnect-sso)
- Created: 2022-09-14T13:13:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-01T04:04:54.000Z (over 3 years ago)
- Last Synced: 2024-06-20T02:11:26.954Z (almost 2 years ago)
- Topics: 2fa, 2factor, azuread, mfa, openconnect, sso, sso-authentication, vpn
- Language: Go
- Homepage:
- Size: 43.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-openconnect-sso
A tool for getting login details through Two Factor Authentication for the openconnect clients. This tool only generates a config file with the `cookie`, `servercert` and `host` details which can be used to connect to the OpenConnect VPN server.
### Usage
```shell
go get -u github.com/rustycl0ck/go-openconnect-sso
go-openconnect-sso --server='https://vpn.server.myorg.com' --config ~/my-vpn-cookie/cookie.txt
```
The generate opneconnect config file:
```
$ cat ~/my-vpn-cookie/cookie.txt
cookie=1234567890ABCDEF123
servercert=4567890DEFABC321
# host=https://vpn-cluster-2.server.myorg.com/
```
After the file is successfully generated, you can run the following to connect to the VPN server:
```
openconnect --verbose --config ~/my-vpn-cookie/cookie.txt https://vpn-cluster-2.server.myorg.com
```
---
**Credits:** This tool has been inspired by (and ported to go from) https://github.com/vlaci/openconnect-sso