Skip to content

Commit cb85c23

Browse files
committed
docs: add Generic OIDC section
1 parent b5d9c6b commit cb85c23

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/self-hosting/sso-oauth.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ When creating a new OAuth application, make sure to set the **Redirect URI** to
2222

2323
:::
2424

25+
## Generic OIDC
26+
27+
The variables you need to configure to enable Generic OIDC support:
28+
29+
| Environment Variable | Default | Description |
30+
| ------------------------ | ---------------------- | ------------------------------------------------------------------------------------ |
31+
| NEXT_PUBLIC_OIDC_ENABLED | - | If set to true, generic OIDC will be enabled and you'll need to define the variables below. |
32+
| OIDC_CUSTOM_NAME | OIDC | Optionally set a custom provider name. |
33+
| OIDC_WELLKNOWN_URL | - | OIDC discovery URL, e.g. `https://idp.example.com/.well-known/openid-configuration`. |
34+
| OIDC_CLIENT_ID | - | Client ID |
35+
| OIDC_CLIENT_SECRET | - | Client Secret. |
36+
| OIDC_SCOPES | `openid email profile` | Optionally override the requested scopes (space-separated). |
37+
38+
The redirect URI to register at your identity provider is `https://<your-domain>/api/v1/auth/callback/oidc`.
39+
2540
## 42 School
2641

2742
The variables you need to configure to enable support for 42 School (OIDC):

0 commit comments

Comments
 (0)