@microsoft/msgraph-sdk-core
Version:
Core functionalities for the Microsoft Graph JavaScript SDK
18 lines • 879 B
JavaScript
import { AzureIdentityAuthenticationProvider } from "@microsoft/kiota-authentication-azure";
export class GraphAzureIdentityAuthenticationProvider extends AzureIdentityAuthenticationProvider {
// create a constructor with TokenCredential
constructor(credentials, scopes, options, allowedHosts, observabilityOptions, isCaeEnabled) {
if (!allowedHosts || allowedHosts.size === 0) {
allowedHosts = new Set([
"graph.microsoft.com",
"graph.microsoft.us",
"dod-graph.microsoft.us",
"graph.microsoft.de",
"microsoftgraph.chinacloudapi.cn",
"canary.graph.microsoft.com",
]);
}
super(credentials, scopes, options, allowedHosts, observabilityOptions, isCaeEnabled);
}
}
//# sourceMappingURL=AzureIdentityAuthenticationProvider.js.map