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: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Changed
11
11
- Remove references to demo from docs. [#734](https://github.com/sourcebot-dev/sourcebot/pull/734)
12
12
- Add docs for GitHub App connection auth. [#735](https://github.com/sourcebot-dev/sourcebot/pull/735)
13
+
- Improved error messaging around oauth scope errors with user driven permission syncing. [#639](https://github.com/sourcebot-dev/sourcebot/pull/639)
13
14
14
15
### Fixed
15
16
- Fixed issue where 403 errors were being raised during a user driven permission sync against a self-hosted code host. [#729](https://github.com/sourcebot-dev/sourcebot/pull/729)
Copy file name to clipboardExpand all lines: docs/docs/features/permission-syncing.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,10 @@ docker run \
27
27
ghcr.io/sourcebot-dev/sourcebot:latest
28
28
```
29
29
30
+
<Warning>
31
+
Enabling permission syncing on an **existing** deployment may result in errors that look like **"User does not have an OAuth access token..."**. This is because the OAuth access token associated with the user's existing account does not have the correct scopes necessary for permission syncing. To fix, have the user re-authenticate to refresh their access token by either logging out of Sourcebot and logging in again or unlinking and re-linking their account.
32
+
</Warning>
33
+
30
34
## Platform support
31
35
32
36
We are actively working on supporting more code hosts. If you'd like to see a specific code host supported, please [reach out](https://www.sourcebot.dev/contact).
@@ -158,7 +166,7 @@ export class AccountPermissionSyncer {
158
166
159
167
if(account.provider==='github'){
160
168
if(!account.access_token){
161
-
thrownewError(`User '${account.user.email}' does not have an GitHub OAuth access token associated with their GitHub account.`);
169
+
thrownewError(`User '${account.user.email}' does not have an GitHub OAuth access token associated with their GitHub account. Please re-authenticate with GitHub to refresh the token.`);
162
170
}
163
171
164
172
// @hack: we don't have a way of identifying specific identity providers in the config file.
@@ -170,6 +178,12 @@ export class AccountPermissionSyncer {
thrownewError(`User '${account.user.email}' does not have a GitLab OAuth access token associated with their GitLab account.`);
205
+
thrownewError(`User '${account.user.email}' does not have a GitLab OAuth access token associated with their GitLab account. Please re-authenticate with GitLab to refresh the token.`);
192
206
}
193
207
194
208
// @hack: we don't have a way of identifying specific identity providers in the config file.
@@ -201,6 +215,11 @@ export class AccountPermissionSyncer {
0 commit comments