Skip to content

Commit 15cbc5f

Browse files
authored
Merge pull request #2 from devopsmindset/feature/modify-headers
Modified header output
2 parents 7bc4218 + fd31dd6 commit 15cbc5f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/token-to-headers.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export function tokenToHeaders(
2828

2929
if (formattedKey === "Common-Name") {
3030
if (ADMIN_LIST.includes(formattedValue)) {
31-
output["Authorization"] = ADMIN_SA_TOKEN;
31+
output["Authorization"] = "Bearer".concat(" ", ADMIN_SA_TOKEN);
3232
} else {
33-
output["Authorization"] = READ_SA_TOKEN;
33+
output["Authorization"] = "Bearer".concat(" ", READ_SA_TOKEN);
3434
}
3535
}
3636
}
@@ -39,6 +39,8 @@ export function tokenToHeaders(
3939
console.log("Token to headers");
4040
processObject(options.headerPrefix, data);
4141
console.log("END token to headers");
42+
console.log("Output headers;");
43+
console.log(output);
4244

4345
return output;
4446
}

0 commit comments

Comments
 (0)