Send authorization header for connection string login backend calls

This commit is contained in:
Asier Isayas
2026-08-17 09:41:38 -07:00
parent ea42796379
commit 4c9167f5fd
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -143,6 +143,7 @@ export async function getTokenFromAuthService(
headers: { headers: {
"content-type": "application/json", "content-type": "application/json",
"x-ms-encrypted-auth-token": userContext.accessToken, "x-ms-encrypted-auth-token": userContext.accessToken,
authorization: userContext.accessToken,
}, },
body: JSON.stringify({ body: JSON.stringify({
verb, verb,
+1
View File
@@ -7,6 +7,7 @@ export async function fetchAccessData(portalToken: string): Promise<AccessInputM
const headers = new Headers(); const headers = new Headers();
// Portal encrypted token API quirk: The token header must be URL encoded // Portal encrypted token API quirk: The token header must be URL encoded
headers.append(HttpHeaders.guestAccessToken, encodeURIComponent(portalToken)); headers.append(HttpHeaders.guestAccessToken, encodeURIComponent(portalToken));
headers.append(HttpHeaders.authorization, encodeURIComponent(portalToken));
const url: string = `${configContext.PORTAL_BACKEND_ENDPOINT}/api/connectionstring/runtimeproxy/accessinputmetadata`; const url: string = `${configContext.PORTAL_BACKEND_ENDPOINT}/api/connectionstring/runtimeproxy/accessinputmetadata`;
const options = { const options = {
method: "GET", method: "GET",