@microsoft/kiota-authentication-azure
Advanced tools
Comparing version 1.0.0-preview.53 to 1.0.0-preview.54
@@ -16,2 +16,3 @@ /** | ||
private readonly observabilityOptions; | ||
private readonly isCaeEnabled; | ||
/** | ||
@@ -23,4 +24,6 @@ *@constructor | ||
*@param allowedHosts The allowed hosts to use for authentication. | ||
*@param observabilityOptions The observability options to use for authentication. | ||
*@param isCaeEnabled A flag to determine if Continuous Access Evaluation is enabled. | ||
*/ | ||
constructor(credentials: TokenCredential, scopes?: string[], options?: GetTokenOptions | undefined, allowedHosts?: Set<string>, observabilityOptions?: ObservabilityOptions); | ||
constructor(credentials: TokenCredential, scopes?: string[], options?: GetTokenOptions | undefined, allowedHosts?: Set<string>, observabilityOptions?: ObservabilityOptions, isCaeEnabled?: boolean); | ||
private readonly allowedHostsValidator; | ||
@@ -27,0 +30,0 @@ private static readonly claimsKey; |
@@ -18,4 +18,6 @@ /** | ||
*@param allowedHosts The allowed hosts to use for authentication. | ||
*@param observabilityOptions The observability options to use for authentication. | ||
*@param isCaeEnabled A flag to determine if Continuous Access Evaluation is enabled. | ||
*/ | ||
constructor(credentials, scopes = [], options, allowedHosts = new Set(), observabilityOptions = new ObservabilityOptionsImpl()) { | ||
constructor(credentials, scopes = [], options, allowedHosts = new Set(), observabilityOptions = new ObservabilityOptionsImpl(), isCaeEnabled = true) { | ||
this.credentials = credentials; | ||
@@ -25,2 +27,3 @@ this.scopes = scopes; | ||
this.observabilityOptions = observabilityOptions; | ||
this.isCaeEnabled = isCaeEnabled; | ||
/** | ||
@@ -54,4 +57,5 @@ * @inheritdoc | ||
const localOptions = Object.assign({}, this.options); | ||
localOptions.enableCae = this.isCaeEnabled; | ||
if (decodedClaims) { | ||
localOptions.claims = decodedClaims; // the field is defined in a derived interface for some reason https://github.com/Azure/azure-sdk-for-js/blob/4498fecbede71563fee5daae2ad537ff57de3640/sdk/identity/identity/src/msal/credentials.ts#L29 | ||
localOptions.claims = decodedClaims; | ||
} | ||
@@ -58,0 +62,0 @@ if (this.scopes.length === 0) { |
@@ -17,5 +17,7 @@ /** | ||
*@param allowedHosts The allowed hosts to use for authentication. | ||
*@param observabilityOptions The observability options to use for authentication. | ||
*@param isCaeEnabled A flag to determine if Continuous Access Evaluation is enabled | ||
*/ | ||
constructor(credentials: TokenCredential, scopes?: string[], options?: GetTokenOptions, allowedHosts?: Set<string>, observabilityOptions?: ObservabilityOptions); | ||
constructor(credentials: TokenCredential, scopes?: string[], options?: GetTokenOptions, allowedHosts?: Set<string>, observabilityOptions?: ObservabilityOptions, isCaeEnabled?: boolean); | ||
} | ||
//# sourceMappingURL=azureIdentityAuthenticationProvider.d.ts.map |
@@ -17,7 +17,9 @@ /** | ||
*@param allowedHosts The allowed hosts to use for authentication. | ||
*@param observabilityOptions The observability options to use for authentication. | ||
*@param isCaeEnabled A flag to determine if Continuous Access Evaluation is enabled | ||
*/ | ||
constructor(credentials, scopes = ["https://graph.microsoft.com/.default"], options, allowedHosts = new Set(["graph.microsoft.com", "graph.microsoft.us", "dod-graph.microsoft.us", "graph.microsoft.de", "microsoftgraph.chinacloudapi.cn", "canary.graph.microsoft.com"]), observabilityOptions = new ObservabilityOptionsImpl()) { | ||
super(new AzureIdentityAccessTokenProvider(credentials, scopes, options, allowedHosts, observabilityOptions)); | ||
constructor(credentials, scopes = ["https://graph.microsoft.com/.default"], options, allowedHosts = new Set(["graph.microsoft.com", "graph.microsoft.us", "dod-graph.microsoft.us", "graph.microsoft.de", "microsoftgraph.chinacloudapi.cn", "canary.graph.microsoft.com"]), observabilityOptions = new ObservabilityOptionsImpl(), isCaeEnabled = true) { | ||
super(new AzureIdentityAccessTokenProvider(credentials, scopes, options, allowedHosts, observabilityOptions, isCaeEnabled)); | ||
} | ||
} | ||
//# sourceMappingURL=azureIdentityAuthenticationProvider.js.map |
{ | ||
"name": "@microsoft/kiota-authentication-azure", | ||
"version": "1.0.0-preview.53", | ||
"version": "1.0.0-preview.54", | ||
"description": "Authentication provider for Kiota using Azure Identity", | ||
@@ -42,3 +42,3 @@ "main": "dist/es/src/index.js", | ||
}, | ||
"gitHead": "c11f92d3dfde91d52387da13dddb4ebfbfd933a3" | ||
"gitHead": "e1586bed4f96cc281d4a2605b1db6649d4e5ee4c" | ||
} |
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
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
74907
248