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
相关产品推荐
相关产品推荐

