| 1 |
[](https://github.com/jkroepke/openvpn-auth-oauth2/actions/workflows/ci.yaml) |
| 2 |
[](https://github.com/jkroepke/openvpn-auth-oauth2/blob/master/LICENSE.txt) |
| 3 |
[](https://github.com/jkroepke/openvpn-auth-oauth2/releases/latest) |
| 4 |
[](https://github.com/jkroepke/openvpn-auth-oauth2/stargazers) |
| 5 |
[](https://github.com/jkroepke/openvpn-auth-oauth2/releases/latest) |
| 6 |
[](https://codecov.io/gh/jkroepke/openvpn-auth-oauth2) |
| 7 |
|
| 8 |
<p align="center"> |
| 9 |
<img align="center" src="https://github.com/jkroepke/openvpn-auth-oauth2/blob/main/docs/img/logo.svg?raw=true" alt="openvpn-auth-oauth2 logo" style="height: 100px" /> |
| 10 |
</p> |
| 11 |
|
| 12 |
# openvpn-auth-oauth2 |
| 13 |
|
| 14 |
⭐ Don't forget to star this repository! ⭐ |
| 15 |
|
| 16 |
## About |
| 17 |
|
| 18 |
[`openvpn-auth-oauth2`](https://github.com/jkroepke/openvpn-auth-oauth2) is a management client for OpenVPN that handles |
| 19 |
the single sign-on (SSO) authentication against various OIDC providers. This project aims to simplify the process of |
| 20 |
integrating OpenVPN with OIDC providers such as |
| 21 |
|
| 22 |
* Microsoft Entra ID (Azure AD) |
| 23 |
* GitHub |
| 24 |
* Okta |
| 25 |
* Google Workspace |
| 26 |
* Authentik |
| 27 |
* Zitadel |
| 28 |
* DigitalOcean |
| 29 |
* Keycloak |
| 30 |
* [... any other OIDC compatible auth server](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Providers) |
| 31 |
|
| 32 |
## Getting Started |
| 33 |
|
| 34 |
- Check the [OpenVPN server and client requirements](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/OpenVPN). |
| 35 |
- Try the project locally with the [Docker Compose demo](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Demo). |
| 36 |
- Follow [Getting Started](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Getting-Started) for a first deployment. |
| 37 |
|
| 38 |
The complete wiki is organized by task and remains available from the |
| 39 |
[documentation home](https://github.com/jkroepke/openvpn-auth-oauth2/wiki). |
| 40 |
|
| 41 |
OpenVPN can connect through the stable plugin on Linux AMD64, Linux ARM64, and |
| 42 |
FreeBSD AMD64, or directly through its management interface. The |
| 43 |
[Getting Started guide](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Getting-Started#4-choose-the-openvpn-integration) |
| 44 |
compares both supported options. |
| 45 |
|
| 46 |
## Installation |
| 47 |
|
| 48 |
For package and source-build options, see the |
| 49 |
[Installation Guide](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Installation). |
| 50 |
|
| 51 |
### Downstream Packages |
| 52 |
|
| 53 |
[](https://repology.org/project/openvpn-auth-oauth2/versions) |
| 54 |
|
| 55 |
## Configuration |
| 56 |
|
| 57 |
For information on how to configure `openvpn-auth-oauth2`, please refer to the [Configuration Guide](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/Configuration). |
| 58 |
|
| 59 |
## OpenVPN Version Requirements |
| 60 |
|
| 61 |
For information on the OpenVPN version requirements, please refer to the [OpenVPN Guide](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/OpenVPN). |
| 62 |
|
| 63 |
## Related Projects |
| 64 |
|
| 65 |
- [openvpn-auth-aad](https://github.com/CyberNinjas/openvpn-auth-aad) |
| 66 |
- [openvpn-oidc](https://github.com/vitaliy-sn/openvpn-oidc) |
| 67 |
- [openvpn-auth-azure-ad](https://github.com/jkroepke/openvpn-auth-azure-ad) |
| 68 |
|
| 69 |
## Contributing |
| 70 |
|
| 71 |
See the [contributing guide](CONTRIBUTING.md) to propose and submit changes. |
| 72 |
|
| 73 |
## License |
| 74 |
|
| 75 |
This project is licensed under the [MIT License](LICENSE.txt). |
| 76 |
|
| 77 |
## Open Source Sponsors |
| 78 |
|
| 79 |
Thanks to all sponsors! |
| 80 |
|
| 81 |
* [@hegawa](https://github.com/hegawa) (25$) onetime |
| 82 |
* [@Zero-Down-Time](https://github.com/Zero-Down-Time) (25$) onetime |
| 83 |
* [@k0ste](https://github.com/k0ste) (25$) onetime |
| 84 |
|
| 85 |
## Acknowledgements |
| 86 |
|
| 87 |
Thanks to JetBrains IDEs and Sparklabs for their support. |
| 88 |
|
| 89 |
<table> |
| 90 |
<thead> |
| 91 |
<tr> |
| 92 |
<th><a href="https://www.jetbrains.com/?from=jkroepke">JetBrains IDEs</a></th> |
| 93 |
<th><a href="https://www.sparklabs.com/viscosity">Sparklabs</a></th> |
| 94 |
<th><a href="https://rafaelalex.de/">Rafael Alex (Logo Design)</a></th> |
| 95 |
</tr> |
| 96 |
</thead> |
| 97 |
<tbody> |
| 98 |
<tr> |
| 99 |
<td> |
| 100 |
<p align="center"> |
| 101 |
<a href="https://www.jetbrains.com/?from=jkroepke"> |
| 102 |
<picture> |
| 103 |
<source srcset="https://www.jetbrains.com/company/brand/img/logo_jb_dos_3.svg" media="(prefers-color-scheme: dark)"> |
| 104 |
<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg" style="height: 50px"> |
| 105 |
</picture> |
| 106 |
</a> |
| 107 |
</p> |
| 108 |
</td> |
| 109 |
<td> |
| 110 |
<p align="center"> |
| 111 |
<a href="https://www.sparklabs.com/viscosity"> |
| 112 |
<img src="https://www.sparklabs.com/static/other/logo_assets/logo_cropped.png" alt="Sparklabs Viscosity logo" style="height: 100px"> |
| 113 |
</a> |
| 114 |
</p> |
| 115 |
</td> |
| 116 |
<td> |
| 117 |
<p align="center"> |
| 118 |
<a href="https://rafaelalex.de/"> |
| 119 |
<img src="https://rafaelalex.de/logo-rafaelalex.svg" alt="Sparklabs Viscosity logo" style="height: 100px"> |
| 120 |
</a> |
| 121 |
</p> |
| 122 |
</td> |
| 123 |
</tr> |
| 124 |
</tbody> |
| 125 |
</table> |