Skip to content

Commit 17aaa8b

Browse files
authored
fix: logout appearing with auth=none (#5449)
1 parent 2ec1e2d commit 17aaa8b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

patches/logout.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
4444
codeServerVersion: this._productService.codeServerVersion,
4545
rootEndpoint: base,
4646
updateEndpoint: !this._environmentService.args['disable-update-check'] ? base + '/update/check' : undefined,
47-
+ logoutEndpoint: this._environmentService.args['auth'] ? base + '/logout' : undefined,
47+
+ logoutEndpoint: this._environmentService.args['auth'] && this._environmentService.args['auth'] !== "none" ? base + '/logout' : undefined,
4848
embedderIdentifier: 'server-distro',
4949
extensionsGallery: this._productService.extensionsGallery,
5050
},

patches/proxy-uri.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
7171
@@ -310,6 +310,7 @@ export class WebClientServer {
7272
rootEndpoint: base,
7373
updateEndpoint: !this._environmentService.args['disable-update-check'] ? base + '/update/check' : undefined,
74-
logoutEndpoint: this._environmentService.args['auth'] ? base + '/logout' : undefined,
74+
logoutEndpoint: this._environmentService.args['auth'] && this._environmentService.args['auth'] !== "none" ? base + '/logout' : undefined,
7575
+ proxyEndpointTemplate: base + '/proxy/{{port}}',
7676
embedderIdentifier: 'server-distro',
7777
extensionsGallery: this._productService.extensionsGallery,

patches/service-worker.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
2323
+++ code-server/lib/vscode/src/vs/server/node/webClientServer.ts
2424
@@ -315,6 +315,10 @@ export class WebClientServer {
2525
updateEndpoint: !this._environmentService.args['disable-update-check'] ? base + '/update/check' : undefined,
26-
logoutEndpoint: this._environmentService.args['auth'] ? base + '/logout' : undefined,
26+
logoutEndpoint: this._environmentService.args['auth'] && this._environmentService.args['auth'] !== "none" ? base + '/logout' : undefined,
2727
proxyEndpointTemplate: base + '/proxy/{{port}}',
2828
+ serviceWorker: {
2929
+ scope: vscodeBase + '/',

0 commit comments

Comments
 (0)