diff --git a/patches/github-auth.diff b/patches/github-auth.diff index 9e0af8094..2bb388e36 100644 --- a/patches/github-auth.diff +++ b/patches/github-auth.diff @@ -5,24 +5,11 @@ Microsoft's does not work with self-hosted instances so we run our own. Also add an extra set of scopes so that tokens provided via --github-auth will work for the PR extension. -Index: code-server/lib/vscode/extensions/github-authentication/src/githubServer.ts -=================================================================== ---- code-server.orig/lib/vscode/extensions/github-authentication/src/githubServer.ts -+++ code-server/lib/vscode/extensions/github-authentication/src/githubServer.ts -@@ -17,7 +17,7 @@ const localize = nls.loadMessageBundle() - const CLIENT_ID = '01ab8ac9400c4e429b23'; - - const NETWORK_ERROR = 'network error'; --const AUTH_RELAY_SERVER = 'vscode-auth.github.com'; -+const AUTH_RELAY_SERVER = 'auth.code-server.dev'; - // const AUTH_RELAY_STAGING_SERVER = 'client-auth-staging-14a768b.herokuapp.com'; - - class UriEventHandler extends vscode.EventEmitter implements vscode.UriHandler { Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts =================================================================== --- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts +++ code-server/lib/vscode/src/vs/server/node/webClientServer.ts -@@ -274,7 +274,7 @@ export class WebClientServer { +@@ -277,7 +277,7 @@ export class WebClientServer { id: generateUuid(), providerId: 'github', accessToken: this._environmentService.args['github-auth'],