Azure Microsoft.IdentityModel.SecurityTokenService.RequestFailedException:令牌请求失败
我有以下CSOM代码:-Azure Microsoft.IdentityModel.SecurityTokenService.RequestFailedException:令牌请求失败,azure,sharepoint-online,Azure,Sharepoint Online,我有以下CSOM代码:- using (ClientContext context = new PnP.Framework.AuthenticationManager().GetACSAppOnlyContext(RisksiteUrl, clientId, clientSecret, AzureEnvironment.Production)) 它正常工作了大约1年,但从昨天开始,上述代码将引发此异常:- Unhandled Exception: Microsoft.IdentityModel
using (ClientContext context = new PnP.Framework.AuthenticationManager().GetACSAppOnlyContext(RisksiteUrl, clientId, clientSecret, AzureEnvironment.Production))
它正常工作了大约1年,但从昨天开始,上述代码将引发此异常:-
Unhandled Exception: Microsoft.IdentityModel.SecurityTokenService.RequestFailedException: Token request failed. ---> System.Net.WebException: The remote server
returned an error: (401) Unauthorized.
有什么建议吗?
谢谢请检查客户端密码是否过期?@GauravMantri感谢您的回复,,,我已经检查过了,但它的过期日期仍然是2021年7月。@GauravMantri我还向Microsoft开了一张罚单,他们提到这是他们不支持的!!有趣!您可以做以下几件事:1)如果可能,通过Fiddler跟踪请求,查看通过网络发送和接收的内容。这会让您对错误有更多的了解2)我不确定这是否是正确的Github存储库(),但您可以找到正确的存储库并在那里打开一个问题。