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
Copy file name to clipboardExpand all lines: docs/docs/configuration/auth/overview.mdx
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,14 @@ Sourcebot's built-in authentication system gates your deployment, and allows adm
22
22
</CardGroup>
23
23
24
24
25
+
# Session lifetime
26
+
27
+
By default, session cookies remain valid for 30 days from the time they are issued, after which the user is signed out and must authenticate again.
28
+
29
+
You can change this by setting the [`AUTH_SESSION_MAX_AGE_SECONDS`](/docs/configuration/environment-variables) environment variable to the desired lifetime in seconds.
30
+
31
+
A session is guaranteed to remain valid for at least its configured lifetime. The JWT verifier applies a small clock-skew tolerance when checking expiry, so a session may continue to be accepted for a brief additional window past that point before it is rejected.
32
+
25
33
# Troubleshooting
26
34
27
35
- If you experience issues logging in, logging out, or accessing an organization you should have access to, try clearing your cookies & performing a full page refresh (`Cmd/Ctrl + Shift + R` on most browsers).
Copy file name to clipboardExpand all lines: docs/docs/features/permission-syncing.mdx
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,8 @@ These users **will** still gain access via [user-driven syncing](/docs/features/
102
102
If your workspace relies heavily on group or project-level permissions rather than direct user grants, we recommend reducing the `userDrivenPermissionSyncIntervalMs` interval to limit the window of delay.
103
103
</Warning>
104
104
105
+
<Note>When a Bitbucket Cloud account is closed by its owner, Atlassian applies an account-deletion grace period (currently 14 days for consumer accounts) before the account is fully purged. During this window, Bitbucket's permission APIs may continue to return the closed user in repository permission lists. Sourcebot revokes that user's access once the next permission sync receives an authentication error from Bitbucket, or once Atlassian fully purges the account.</Note>
106
+
105
107
**Notes:**
106
108
- A Bitbucket Cloud [external identity provider](/docs/configuration/idp#bitbucket-cloud) must be configured to (1) correlate a Sourcebot user with a Bitbucket Cloud user, and (2) to list repositories that the user has access to for [User driven syncing](/docs/features/permission-syncing#how-it-works).
107
109
- OAuth tokens require the `account` and `repository` scopes. The `repository` scope is required to list private repositories during [User driven syncing](/docs/features/permission-syncing#how-it-works).
@@ -202,4 +204,17 @@ The sync intervals can be configured using the following settings in the [config
|`repoDrivenPermissionSyncIntervalMs`| number | 24 hours | 1 |
205
-
|`userDrivenPermissionSyncIntervalMs`| number | 24 hours | 1 |
207
+
|`userDrivenPermissionSyncIntervalMs`| number | 24 hours | 1 |
208
+
209
+
# FAQ
210
+
211
+
### What happens if there are transient errors with the code host?
212
+
213
+
It depends on the type of error:
214
+
215
+
-**Authentication errors** (such as `401`, `403`, `410`, or a token refresh failure): Sourcebot immediately revokes the affected user's access to repositories on that code host.
216
+
-**Rate limits or `5xx` responses**: Sourcebot keeps the user's existing access.
217
+
218
+
### When is a visibility change of a repo (switching from public to private) reflected within Sourcebot?
219
+
220
+
The visibility state of a repository is updated when the [connection](/docs/connections/overview#connection-syncing) belonging to that repository is synced, not when the repository's permissions are synced. Until the next connection sync runs, Sourcebot continues to apply the repository's previous public/private classification. The connection sync interval is configurable via the `resyncConnectionIntervalMs` setting in the [config file](/docs/configuration/config-file) and defaults to 24 hours. Lower this value if you require faster propagation of visibility changes.
0 commit comments