使用 oauth2 从 Dynamics 365 调用 Azure 函数

Call Azure function from Dynamics 365 using oauth2

我一直在搜索有关使用 ouath2 从 CRM 调用 Azure 函数的信息,我找到的所有信息都是关于使用函数键从 Dynamics 365 调用 Azure 函数的。

如果有人知道,请告诉我 ouath2.0 是否可行以及我如何实现它?

我打开了一个 github issue 从微软那里得到关于这个主题的更新(我知道这是一个长期的挑战),它仍然不是积极的,但可能会在不久的将来获得一些功能.在那之前,我们可能不得不直接在插件中使用 HttpClient 而不是 webhook。

This is a known challenge which Web Hooks doesn't even attempt to address. Your options are limited. So this is a feature request rather than a documentation issue.

If you attempt to call such an authenticated service using an HttpClient in a plug-in, you have more options. But none of them today represent best practices that we would recommend specifically at this time, although I see people making them work in community posts. Setting a certificate or secret value within the secure configuration of the plug-in seems to be the best solution I've seen. But we are looking to provide something better.