I'm looking to build a set of services that require a single sign on. Basically, you login to my oAuth provider, and you have access to an openvpn connection(or wireguard) and a website, without additional security needed, with the possible exception of an original setup.
My question therefore is: How do I automate openVpn so that I can do either one of two things:
- Authenticate my connection with a token instead of a password/username
Or
- Authenticate my connection with a username/password, that I can then send to my oAuth provider and return a token to the client, for other applications
Best Answer
Read man openvpn. It is the definitive source of information about OpenVPN.
Let me just copy-paste a part of that page. I think this should completely answer your question: