在 OAuth 2.0 客户端凭据流中重新生成新的Microsoft令牌时出现"unauthorized_client"错误



我们使用OAuth 2.0客户端凭证流进行管理员身份验证。我们使用这个API来重新生成admin认证令牌。但是,当令牌无效后生成令牌时,我们会得到用户的以下错误。你能给点建议吗?

{"error":"unauthorized_client","error_description":"AADSTS7000112: Application 'xxxxxxxxxxxxxxxxxx'(<app-name>) is disabled.rnTrace ID: ec4b3557-143a-4020-9651-5cdaf0f83900rnCorrelation ID: 97arnTimestamp: 2022-04-28 00:3sdew34fdddddddddd7:47Z","error_codes":[7000112],"timestamp":"2022-04-28 00:37:47Z","trace_id":"ec4b3557-143a-4020-9651-5cdaf0f83900","correlation_id":"9e5ewferferfge753476fergerf97a"}

这意味着您的Graph应用程序要么没有安装,要么为特定的Exchange租户禁用。确保它是属性注册-从https://learn.microsoft.com/en-us/graph/auth-register-app-v2

开始

最新更新