@microsoft/kiota-authentication-azure
Advanced tools
Comparing version 1.0.0-preview.6 to 1.0.0-preview.7
@@ -52,3 +52,3 @@ "use strict"; | ||
yield tokenCredentialAuthenticationProvider.authenticateRequest(request); | ||
chai_1.assert.equal(request.headers["Authorization"], "Bearer " + accessToken.token); | ||
chai_1.assert.equal(request.headers["Authorization"][0], "Bearer " + accessToken.token); | ||
})); | ||
@@ -72,3 +72,3 @@ it("AccessToken is appended correctly in header by BaseBearerTokenAuthenticationProvider", () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { | ||
yield tokenCredentialAuthenticationProvider.authenticateRequest(request); | ||
chai_1.assert.equal(request.headers["Authorization"], "Bearer " + accessToken.token); | ||
chai_1.assert.equal(request.headers["Authorization"][0], "Bearer " + accessToken.token); | ||
})); | ||
@@ -92,3 +92,3 @@ it("adds the claims to the token context", () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { | ||
request.URL = "https://graph.microsoft.com/v1.0"; | ||
request.headers.Authorization = "Bearer dummy_valid_token"; | ||
request.headers.Authorization = ["Bearer dummy_valid_token"]; | ||
const tokenCredentialAuthenticationProvider = new src_1.AzureIdentityAuthenticationProvider(clientCredential, scopes); | ||
@@ -95,0 +95,0 @@ yield tokenCredentialAuthenticationProvider.authenticateRequest(request, { |
@@ -49,3 +49,3 @@ /** | ||
await tokenCredentialAuthenticationProvider.authenticateRequest(request); | ||
assert.equal(request.headers["Authorization"], "Bearer " + accessToken.token); | ||
assert.equal(request.headers["Authorization"][0], "Bearer " + accessToken.token); | ||
}); | ||
@@ -69,3 +69,3 @@ it("AccessToken is appended correctly in header by BaseBearerTokenAuthenticationProvider", async () => { | ||
await tokenCredentialAuthenticationProvider.authenticateRequest(request); | ||
assert.equal(request.headers["Authorization"], "Bearer " + accessToken.token); | ||
assert.equal(request.headers["Authorization"][0], "Bearer " + accessToken.token); | ||
}); | ||
@@ -89,3 +89,3 @@ it("adds the claims to the token context", async () => { | ||
request.URL = "https://graph.microsoft.com/v1.0"; | ||
request.headers.Authorization = "Bearer dummy_valid_token"; | ||
request.headers.Authorization = ["Bearer dummy_valid_token"]; | ||
const tokenCredentialAuthenticationProvider = new AzureIdentityAuthenticationProvider(clientCredential, scopes); | ||
@@ -92,0 +92,0 @@ await tokenCredentialAuthenticationProvider.authenticateRequest(request, { |
{ | ||
"name": "@microsoft/kiota-authentication-azure", | ||
"version": "1.0.0-preview.6", | ||
"version": "1.0.0-preview.7", | ||
"description": "Authentication provider for Kiota using Azure Identity", | ||
@@ -37,7 +37,7 @@ "main": "dist/cjs/src/index.js", | ||
"@azure/core-auth": "^1.3.2", | ||
"@microsoft/kiota-abstractions": "^1.0.0-preview.8", | ||
"@microsoft/kiota-abstractions": "^1.0.0-preview.9", | ||
"@opentelemetry/api": "^1.2.0", | ||
"tslib": "^2.3.1" | ||
}, | ||
"gitHead": "7a256295bd1eb3618b6fee86292b1cea33ffc526" | ||
"gitHead": "526fe938c5ac9516b11db81d279b26b7c84ac5aa" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142290