ADAL-Node:找不到租户组织

ADAL-Node: Tenant organizations not found

如果权限 url 是这样的 https://login.microsoftonline.com/domainName(其中域名是与您的租户关联的域)我收到以下错误

Get Token request returned http error: 400 and server response:error description AADSTS90002 Tenant 'organizations' not found This may happen if there are no active subscriptions for the tenant. Check to make sure you have the correct tenant ID

代码在 authority_url 类似的情况下工作正常 https://login.microsoftonline.com/{Guid}(其中Guid为租户ID)

示例代码:

var authorityUrl = 'https://login.microsoftonline.com/organizations';
var authContext = new AuthenticationContext(authorityUrl, undefined, undefined, '');
var token = await this.authContext.acquireTokenWithClientCredentials(this.resourceId, this.clientId, this.clientSecret);

使用“adal-node”:“0.2.1”

错误消息指出您指定的租户(“组织”)不存在。请尝试提供有效的租户名称。
IE。 https://login.microsoftonline.com/YourOrgName.onmicrosoft.com 其中“YourOrgName.onmicrosoft.com”应替换为您的租户名称。