[](https://github.com/jkroepke/openvpn-auth-oauth2/actions/workflows/ci.yaml)
[](https://github.com/jkroepke/openvpn-auth-oauth2/blob/master/LICENSE.txt)
[](https://github.com/jkroepke/openvpn-auth-oauth2/releases/latest)
[](https://github.com/jkroepke/openvpn-auth-oauth2/stargazers)
[](https://github.com/jkroepke/openvpn-auth-oauth2/releases/latest)
[](https://codecov.io/gh/jkroepke/openvpn-auth-oauth2)
# openvpn-auth-oauth2
⭐ Don't forget to star this repository! ⭐
## About
[`openvpn-auth-oauth2`](https://github.com/jkroepke/openvpn-auth-oauth2) is a management client for OpenVPN that handles
the single sign-on (SSO) authentication against various OIDC providers. This project aims to simplify the process of
integrating OpenVPN with OIDC providers such as
* Microsoft Entra ID (Azure AD)
* GitHub
* Okta
* Google Workspace
* Authentik
* Zitadel
* DigitalOcean
* Keycloak
* [... any other OIDC compatible auth server](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Providers)
## Getting Started
- Check the [OpenVPN server and client requirements](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/OpenVPN).
- Try the project locally with the [Docker Compose demo](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Demo).
- Follow [Getting Started](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Getting-Started) for a first deployment.
The complete wiki is organized by task and remains available from the
[documentation home](https://github.com/jkroepke/openvpn-auth-oauth2/wiki).
OpenVPN can connect through the stable plugin on Linux AMD64, Linux ARM64, and
FreeBSD AMD64, or directly through its management interface. The
[Getting Started guide](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Getting-Started#4-choose-the-openvpn-integration)
compares both supported options.
## Installation
For package and source-build options, see the
[Installation Guide](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Installation).
### Downstream Packages
[](https://repology.org/project/openvpn-auth-oauth2/versions)
## Configuration
For information on how to configure `openvpn-auth-oauth2`, please refer to the [Configuration Guide](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Configuration).
## OpenVPN Version Requirements
For information on the OpenVPN version requirements, please refer to the [OpenVPN Guide](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/OpenVPN).
## Related Projects
- [openvpn-auth-aad](https://github.com/CyberNinjas/openvpn-auth-aad)
- [openvpn-oidc](https://github.com/vitaliy-sn/openvpn-oidc)
- [openvpn-auth-azure-ad](https://github.com/jkroepke/openvpn-auth-azure-ad)
## Contributing
See the [contributing guide](CONTRIBUTING.md) to propose and submit changes.
## License
This project is licensed under the [MIT License](LICENSE.txt).
## Open Source Sponsors
Thanks to all sponsors!
* [@hegawa](https://github.com/hegawa) (25$) onetime
* [@Zero-Down-Time](https://github.com/Zero-Down-Time) (25$) onetime
* [@k0ste](https://github.com/k0ste) (25$) onetime
## Acknowledgements
Thanks to JetBrains IDEs and Sparklabs for their support.