You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

PowerPlatform Dataverse NuGet SDK匿名认证请求被禁止问题排查

Dataverse Org Service 连接报错问题

我尝试使用Org Service连接Dataverse,无论使用以下OAuth连接字符串:

"AuthType=OAuth;UserName={_userName};Password={_password};ClientId={_clientId};ClientSecret={_clientSecret};
    Authority=https://login.microsoftonline.com/{_tenantId};Url={_url};RedirectUri=http://localhost;"

还是ClientSecret连接字符串:

$"AuthType=ClientSecret;ClientId={_clientId};ClientSecret={_clientSecret};
    Authority=https://login.microsoftonline.com/{_tenantId};Url={_url};"

都会触发如下错误:

System.ServiceModel.Security.MessageSecurityException: 'The HTTP request was forbidden with client authentication scheme 'Anonymous'.'

我已经检查过Entra ID的设置、API权限,确认密钥已生成,甚至添加了代理用户作为应用所有者,但问题依然存在。想知道是不是Dataverse端还有相关配置遗漏?

内容的提问来源于stack exchange,提问作者djangojazz

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 03:19:50