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

kar*_*hik 5 outlook office365 office365api microsoft-graph-api

我们使用OAuth 2.0 客户端凭据流程进行管理员身份验证。我们正在使用此API来重新生成管理 oauth 令牌。但是,在令牌无效后生成令牌时,用户会收到以下错误。您能就此提出建议吗?

{"error":"unauthorized_client","error_description":"AADSTS7000112: Application 'xxxxxxxxxxxxxxxxxx'(<app-name>) is disabled.\r\nTrace ID: ec4b3557-143a-4020-9651-5cdaf0f83900\r\nCorrelation ID: 97a\r\nTimestamp: 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"}

Dmi*_*nko 0

这意味着您的 Graph 应用程序未安装或已针对该特定 Exchange 租户禁用。确保它已注册属性 - 从https://learn.microsoft.com/en-us/graph/auth-register-app-v2开始