@azure/core-client
Advanced tools
Comparing version 1.9.3-alpha.20241016.3 to 1.9.3-alpha.20241021.2
@@ -50,2 +50,3 @@ // Copyright (c) Microsoft Corporation. | ||
export async function authorizeRequestOnClaimChallenge(onChallengeOptions) { | ||
var _a; | ||
const { scopes, response } = onChallengeOptions; | ||
@@ -70,5 +71,5 @@ const logger = onChallengeOptions.logger || coreClientLogger; | ||
} | ||
onChallengeOptions.request.headers.set("Authorization", `Bearer ${accessToken.token}`); | ||
onChallengeOptions.request.headers.set("Authorization", `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`); | ||
return true; | ||
} | ||
//# sourceMappingURL=authorizeRequestOnClaimChallenge.js.map |
@@ -27,2 +27,3 @@ // Copyright (c) Microsoft Corporation. | ||
export const authorizeRequestOnTenantChallenge = async (challengeOptions) => { | ||
var _a; | ||
const requestOptions = requestToOptions(challengeOptions.request); | ||
@@ -41,3 +42,3 @@ const challenge = getChallenge(challengeOptions.response); | ||
} | ||
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${accessToken.token}`); | ||
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`); | ||
return true; | ||
@@ -44,0 +45,0 @@ } |
@@ -54,2 +54,3 @@ "use strict"; | ||
async function authorizeRequestOnClaimChallenge(onChallengeOptions) { | ||
var _a; | ||
const { scopes, response } = onChallengeOptions; | ||
@@ -74,5 +75,5 @@ const logger = onChallengeOptions.logger || log_js_1.logger; | ||
} | ||
onChallengeOptions.request.headers.set("Authorization", `Bearer ${accessToken.token}`); | ||
onChallengeOptions.request.headers.set("Authorization", `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`); | ||
return true; | ||
} | ||
//# sourceMappingURL=authorizeRequestOnClaimChallenge.js.map |
@@ -30,2 +30,3 @@ "use strict"; | ||
const authorizeRequestOnTenantChallenge = async (challengeOptions) => { | ||
var _a; | ||
const requestOptions = requestToOptions(challengeOptions.request); | ||
@@ -44,3 +45,3 @@ const challenge = getChallenge(challengeOptions.response); | ||
} | ||
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${accessToken.token}`); | ||
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`); | ||
return true; | ||
@@ -47,0 +48,0 @@ } |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.47.9" | ||
"packageVersion": "7.47.11" | ||
} | ||
] | ||
} |
@@ -50,2 +50,3 @@ // Copyright (c) Microsoft Corporation. | ||
export async function authorizeRequestOnClaimChallenge(onChallengeOptions) { | ||
var _a; | ||
const { scopes, response } = onChallengeOptions; | ||
@@ -70,5 +71,5 @@ const logger = onChallengeOptions.logger || coreClientLogger; | ||
} | ||
onChallengeOptions.request.headers.set("Authorization", `Bearer ${accessToken.token}`); | ||
onChallengeOptions.request.headers.set("Authorization", `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`); | ||
return true; | ||
} | ||
//# sourceMappingURL=authorizeRequestOnClaimChallenge.js.map |
@@ -27,2 +27,3 @@ // Copyright (c) Microsoft Corporation. | ||
export const authorizeRequestOnTenantChallenge = async (challengeOptions) => { | ||
var _a; | ||
const requestOptions = requestToOptions(challengeOptions.request); | ||
@@ -41,3 +42,3 @@ const challenge = getChallenge(challengeOptions.response); | ||
} | ||
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${accessToken.token}`); | ||
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`); | ||
return true; | ||
@@ -44,0 +45,0 @@ } |
@@ -50,2 +50,3 @@ // Copyright (c) Microsoft Corporation. | ||
export async function authorizeRequestOnClaimChallenge(onChallengeOptions) { | ||
var _a; | ||
const { scopes, response } = onChallengeOptions; | ||
@@ -70,5 +71,5 @@ const logger = onChallengeOptions.logger || coreClientLogger; | ||
} | ||
onChallengeOptions.request.headers.set("Authorization", `Bearer ${accessToken.token}`); | ||
onChallengeOptions.request.headers.set("Authorization", `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`); | ||
return true; | ||
} | ||
//# sourceMappingURL=authorizeRequestOnClaimChallenge.js.map |
@@ -27,2 +27,3 @@ // Copyright (c) Microsoft Corporation. | ||
export const authorizeRequestOnTenantChallenge = async (challengeOptions) => { | ||
var _a; | ||
const requestOptions = requestToOptions(challengeOptions.request); | ||
@@ -41,3 +42,3 @@ const challenge = getChallenge(challengeOptions.response); | ||
} | ||
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${accessToken.token}`); | ||
challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `${(_a = accessToken.tokenType) !== null && _a !== void 0 ? _a : "Bearer"} ${accessToken.token}`); | ||
return true; | ||
@@ -44,0 +45,0 @@ } |
{ | ||
"name": "@azure/core-client", | ||
"version": "1.9.3-alpha.20241016.3", | ||
"version": "1.9.3-alpha.20241021.2", | ||
"description": "Core library for interfacing with AutoRest generated code", | ||
@@ -5,0 +5,0 @@ "sdk-type": "client", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1483365
14056