Skip to content

Commit 3cdda93

Browse files
committed
Make sessionScopes a trusted value
1 parent f613d83 commit 3cdda93

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/authentication/authentication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export default class GitpodAuthenticationProvider extends Disposable implements
226226
if (sortedScopes.length !== sortedFilteredScopes.length) {
227227
this.logService.warn(`Creating session with only valid scopes ${sortedFilteredScopes.join(',')}, original scopes were ${sortedScopes.join(',')}`);
228228
}
229-
flow.scopes = JSON.stringify(sortedFilteredScopes);
229+
flow.sessionScopes = JSON.stringify(sortedFilteredScopes);
230230
this.telemetryService.sendUserFlowStatus('login', flow);
231231

232232
const scopeString = sortedFilteredScopes.join(' ');

src/common/telemetry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import { cloneAndChange, escapeRegExpCharacters, isBuiltFromGHA, mixin } from '.
1010
import fetch from 'node-fetch-commonjs';
1111

1212
export const TRUSTED_VALUES = new Set([
13-
'gitpodHost'
13+
'gitpodHost',
14+
'sessionScopes'
1415
]);
1516

1617
export interface TelemetryEventProperties {

0 commit comments

Comments
 (0)