Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure Microsoft.IdentityModel.SecurityTokenService.RequestFailedException:令牌请求失败_Azure_Sharepoint Online - Fatal编程技术网

Azure Microsoft.IdentityModel.SecurityTokenService.RequestFailedException:令牌请求失败

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

我有以下CSOM代码:-

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存储库(),但您可以找到正确的存储库并在那里打开一个问题。