Debian Codegraph @

docs/Home.md

raw
1 # Home
2
3 `openvpn-auth-oauth2` connects OpenVPN Community Server to an OpenID Connect
4 (OIDC) provider. Users authenticate in their browser, and the result is returned
5 to OpenVPN through its management interface.
6
7 > [!IMPORTANT]
8 > OpenVPN Access Server is not supported. Before deploying, check the
9 > [server and client requirements](OpenVPN).
10
11 ## Start here
12
13 Choose the path that matches what you want to do:
14
15 | Goal | Start with |
16 |------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|
17 | Evaluate the login experience locally | [Run the Docker Compose demo](Demo) |
18 | Deploy the service for the first time | [Getting Started](Getting%20Started) |
19 | Upgrade an existing version 1 deployment | [Upgrade to version 2](Upgrade%20V2) |
20 | Fix a connection or login problem | [Troubleshooting](Debugging%20Errors) and the [FAQ](FAQ) |
21 | Understand the authentication design | [How OIDC SSO works with OpenVPN](Article%20-%20How%20OIDC%20SSO%20Authentication%20works%20with%20OpenVPN%20Community%20Server) |
22
23 ## Documentation by task
24
25 ### Install and configure
26
27 - [Installation](Installation) covers Linux packages and building from source.
28 - [Configuration](Configuration) is the complete settings reference.
29 - [Providers](Providers) contains registration and configuration examples for
30 supported identity providers.
31 - [HTTPS Listener](HTTPS%20Listener) explains reverse-proxy and native TLS
32 options.
33 - [OpenVPN Plugin](OpenVPN%20Plugin) is a stable integration for Linux AMD64,
34 Linux ARM64, and FreeBSD AMD64 that keeps OpenVPN's management interface
35 available for other tools.
36
37 ### Control access and identity
38
39 - [Client token validation](Client%20token%20validation) restricts access with
40 token claims and CEL expressions.
41 - [OpenVPN Username](OpenVPN%20Username) controls how OIDC identities appear in
42 OpenVPN.
43 - [Client-specific configuration](Client%20specific%20configuration) assigns
44 routes and other OpenVPN settings to identities.
45 - [Non-interactive session refresh](Non-interactive%20session%20refresh) reduces
46 repeated browser logins.
47
48 ### Operate and extend
49
50 - [Security considerations](Security%20considerations) describes threats and
51 recommended mitigations.
52 - [Filesystem Permissions](Filesystem%20Permissions) covers package and systemd
53 file access.
54 - [Management interface pass-through](Management%20Interface%20pass-through)
55 lets another management client connect through `openvpn-auth-oauth2` when
56 using the direct integration.
57 - [Layout Customization](Layout%20Customization) changes the browser result page.
58
59 The sidebar contains every documentation page.
60
61 ## Authentication flow
62
63 ```mermaid
64 sequenceDiagram
65 participant Client as OpenVPN client
66 participant Server as OpenVPN server
67 participant Auth as openvpn-auth-oauth2
68 participant Browser
69 participant IdP as OIDC provider
70
71 Client->>Server: Connect
72 Server->>Auth: CLIENT:CONNECT
73 Auth-->>Server: WEB_AUTH URL
74 Server-->>Client: WEB_AUTH URL
75 Client->>Browser: Open URL
76 Browser->>IdP: Sign in
77 IdP-->>Browser: Redirect with authorization code
78 Browser->>Auth: OAuth2 callback
79 Auth->>IdP: Exchange authorization code
80 IdP-->>Auth: ID and access tokens
81 Auth->>Server: Accept or deny client
82 Server-->>Client: Connection established
83
84 Server->>Auth: CLIENT:REAUTH
85 alt Non-interactive reauthentication
86 Auth->>IdP: Refresh token
87 IdP-->>Auth: New ID and access tokens
88 Auth->>Server: Accept or deny client
89 else Internal refresh authentication
90 Auth->>Auth: Validate stored authentication state
91 Auth->>Server: Accept or deny client
92 else Interactive reauthentication required
93 Auth-->>Server: WEB_AUTH URL
94 Server-->>Client: WEB_AUTH URL
95 Client->>Browser: Open URL
96 Browser->>IdP: Sign in
97 IdP-->>Browser: Redirect with authorization code
98 Browser->>Auth: OAuth2 callback
99 Auth->>IdP: Exchange authorization code
100 IdP-->>Auth: ID and access tokens
101 Auth->>Server: Accept or deny client
102 end
103 ```