Socket
Socket
Sign inDemoInstall

@microsoft/kiota-authentication-azure

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/kiota-authentication-azure - npm Package Compare versions

Comparing version 1.0.0-preview.6 to 1.0.0-preview.7

6

dist/cjs/test/azureIdentityAuthenticationTest.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc