invalid_grant 加入 Office365 Outlook OAuth 时出错
invalid_grant error with accession Office365 Outlook OAuth
获取错误
{"error":"invalid_grant","error_description":"AADSTS65001: The user or administrator has not consented to use the application with ID '987bdee9-c048-4ea0-b056-25ffc88d536c' named 'Linwood Homes Outlook'. Send an interactive authorization request for this user and resource.\r\nTrace ID: 9cecffb0-cf4f-43f1-b28e-4289b1fa0700\r\nCorrelation ID: 5c6e6d7a-ffec-463b-96ab-dac53bc5c383\r\nTimestamp: 2018-07-20 10:23:06Z","error_codes":[65001],"timestamp":"2018-07-20 10:23:06Z","trace_id":"9cecffb0-cf4f-43f1-b28e-4289b1fa0700","correlation_id":"5c6e6d7a-ffec-463b-96ab-dac53bc5c383","suberror":"consent_required"}
我正在使用 Office365 outlook REST API 在我们的应用程序中发送和接收新电子邮件。
我能够弄清楚如何添加管理员许可。我必须使用全局管理员帐户登录,然后在范围部分中,为所有用户添加了范围权限。
谢谢!
获取错误
{"error":"invalid_grant","error_description":"AADSTS65001: The user or administrator has not consented to use the application with ID '987bdee9-c048-4ea0-b056-25ffc88d536c' named 'Linwood Homes Outlook'. Send an interactive authorization request for this user and resource.\r\nTrace ID: 9cecffb0-cf4f-43f1-b28e-4289b1fa0700\r\nCorrelation ID: 5c6e6d7a-ffec-463b-96ab-dac53bc5c383\r\nTimestamp: 2018-07-20 10:23:06Z","error_codes":[65001],"timestamp":"2018-07-20 10:23:06Z","trace_id":"9cecffb0-cf4f-43f1-b28e-4289b1fa0700","correlation_id":"5c6e6d7a-ffec-463b-96ab-dac53bc5c383","suberror":"consent_required"}
我正在使用 Office365 outlook REST API 在我们的应用程序中发送和接收新电子邮件。
我能够弄清楚如何添加管理员许可。我必须使用全局管理员帐户登录,然后在范围部分中,为所有用户添加了范围权限。
谢谢!