You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Warning>If you're deploying Sourcebot behind a domain, you must set the [AUTH_URL](/docs/configuration/environment-variables) environment variable.</Warning>
6
6
7
-
Sourcebot has built-in authentication that gates access to your organization. OAuth, email codes, and email / password are supported.
7
+
Sourcebot's built-in authentication system gates your deployment, and allows administrators to manage users and their permissions.
Have a question about Sourcebot's auth system? We might have the answers here.
21
+
</Card>
22
+
</CardGroup>
8
23
9
-
The first account that's registered on a Sourcebot deployment is made the owner. All other users who register must be [approved](/docs/configuration/auth/overview#approving-new-members) by the owner.
10
-
11
-

12
-
13
-
14
-
# Approving New Members
15
-
16
-
All account registrations after the first account must be approved by the owner. The owner can see all join requests by going into **Settings -> Members**.
17
-
18
-
You can setup emails to be sent when new join requests are created/approved by configurating [transactional emails](/docs/configuration/transactional-emails)
19
-
# Authentication Providers
20
-
21
-
To enable an authentication provider in Sourcebot, configure the required environment variables for the provider. Under the hood, Sourcebot uses Auth.js which supports [many providers](https://authjs.dev/getting-started/authentication/oauth). Submit a [feature request on GitHub](https://github.com/sourcebot-dev/sourcebot/discussions/categories/ideas) if you want us to add support for a specific provider.
22
-
23
-
## Core Authentication Providers
24
-
25
-
### Email / Password
26
-
---
27
-
Email / password authentication is enabled by default. It can be **disabled** by setting `AUTH_CREDENTIALS_LOGIN_ENABLED` to `false`.
28
-
29
-
### Email codes
30
-
---
31
-
Email codes are 6 digit codes sent to a provided email. Email codes are enabled when transactional emails are configured using the following environment variables:
32
-
33
-
-`AUTH_EMAIL_CODE_LOGIN_ENABLED`
34
-
-`SMTP_CONNECTION_URL`
35
-
-`EMAIL_FROM_ADDRESS`
36
-
37
-
38
-
See [transactional emails](/docs/configuration/transactional-emails) for more details.
39
-
40
-
## Enterprise Authentication Providers
41
-
42
-
The following authentication providers require an [enterprise license](/docs/license-key) to be enabled.
-`AUTH_EE_GITLAB_BASE_URL` - Base URL for GitLab instance (defaults to https://gitlab.com)
67
-
68
-
### Google
69
-
---
70
-
71
-
[Auth.js Google Provider Docs](https://authjs.dev/getting-started/providers/google)
72
-
73
-
**Required environment variables:**
74
-
-`AUTH_EE_GOOGLE_CLIENT_ID`
75
-
-`AUTH_EE_GOOGLE_CLIENT_SECRET`
76
-
77
-
### GCP IAP
78
-
---
79
-
80
-
<Note>If you're running Sourcebot in an environment that blocks egress, make sure you allow the [IAP IP ranges](https://www.gstatic.com/ipranges/goog.json)</Note>
81
-
82
-
Custom provider built to enable automatic Sourcebot account registration/login when using GCP IAP.
83
-
84
-
**Required environment variables**
85
-
-`AUTH_EE_GCP_IAP_ENABLED`
86
-
-`AUTH_EE_GCP_IAP_AUDIENCE`
87
-
- This can be found by selecting the ⋮ icon next to the IAP-enabled backend service and pressing `Get JWT audience code`
Sourcebot supports a wide range of different authentication providers through it's integration with [Auth.js](https://authjs.dev/). This page
6
+
highlights how to configure the various supported providers.
7
+
8
+
If theres an authentication provider you'd like us to support, please [reach out](https://www.sourcebot.dev/contact).
9
+
10
+
# Core Authentication Providers
11
+
12
+
### Email / Password
13
+
---
14
+
Email / password authentication is enabled by default. It can be **disabled** by setting `AUTH_CREDENTIALS_LOGIN_ENABLED` to `false`.
15
+
16
+
### Email codes
17
+
---
18
+
Email codes are 6 digit codes sent to a provided email. Email codes are enabled when transactional emails are configured using the following environment variables:
19
+
20
+
-`AUTH_EMAIL_CODE_LOGIN_ENABLED`
21
+
-`SMTP_CONNECTION_URL`
22
+
-`EMAIL_FROM_ADDRESS`
23
+
24
+
25
+
See [transactional emails](/docs/configuration/transactional-emails) for more details.
26
+
27
+
# Enterprise Authentication Providers
28
+
29
+
The following authentication providers require an [enterprise license](/docs/license-key) to be enabled.
-`AUTH_EE_GITLAB_BASE_URL` - Base URL for GitLab instance (defaults to https://gitlab.com)
54
+
55
+
### Google
56
+
---
57
+
58
+
[Auth.js Google Provider Docs](https://authjs.dev/getting-started/providers/google)
59
+
60
+
**Required environment variables:**
61
+
-`AUTH_EE_GOOGLE_CLIENT_ID`
62
+
-`AUTH_EE_GOOGLE_CLIENT_SECRET`
63
+
64
+
### GCP IAP
65
+
---
66
+
67
+
<Note>If you're running Sourcebot in an environment that blocks egress, make sure you allow the [IAP IP ranges](https://www.gstatic.com/ipranges/goog.json)</Note>
68
+
69
+
Custom provider built to enable automatic Sourcebot account registration/login when using GCP IAP.
70
+
71
+
**Required environment variables**
72
+
-`AUTH_EE_GCP_IAP_ENABLED`
73
+
-`AUTH_EE_GCP_IAP_AUDIENCE`
74
+
- This can be found by selecting the ⋮ icon next to the IAP-enabled backend service and pressing `Get JWT audience code`
0 commit comments