Skip to content

Commit df8c72c

Browse files
committed
var name typo
1 parent 6e44673 commit df8c72c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/backend/src/repoManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class RepoManager {
175175

176176
const credentials = await getAuthCredentialsForRepo(repo, this.db);
177177
const cloneUrlMaybeWithToken = credentials?.cloneUrlWithToken ?? repo.cloneUrl;
178-
const authHeader = credentials?.authToken ?? undefined;
178+
const authHeader = credentials?.authHeader ?? undefined;
179179

180180
if (existsSync(repoPath) && !isReadOnly) {
181181
// @NOTE: in #483, we changed the cloning method s.t., we _no longer_

packages/backend/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ export type RepoAuthCredentials = {
6060
hostUrl?: string;
6161
token: string;
6262
cloneUrlWithToken?: string;
63-
authToken?: string;
63+
authHeader?: string;
6464
}

packages/backend/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,12 @@ export const getAuthCredentialsForRepo = async (repo: RepoWithConnections, db: P
196196

197197
// For ADO server, multiple auth schemes may be supported. If the ADO deployment supports NTLM, the git clone will default
198198
// to this over basic auth. As a result, we cannot embed the token in the clone URL and must force basic auth by passing in the token
199-
// appropriately in the header. To do this, we set the authToken field here
199+
// appropriately in the header. To do this, we set the authHeader field here
200200
if (config.deploymentType === 'server') {
201201
return {
202202
hostUrl: config.url,
203203
token,
204-
authToken: "Authorization: Basic " + Buffer.from(`:${token}`).toString('base64')
204+
authHeader: "Authorization: Basic " + Buffer.from(`:${token}`).toString('base64')
205205
}
206206
} else {
207207
return {

0 commit comments

Comments
 (0)