简体   繁体   English

Azure Logic应用程序请求触发器授权

[英]Azure Logic App Request Trigger authorization

I have a Logic App with an HTTP initial trigger that is all set up: 我有一个带有HTTP初始触发器的Logic App,该触发器已设置完毕:

在此处输入图片说明

When I make the POST to the URL that is given to me (looks like https://___.azure.com/workflows/___/triggers/manual/paths/invoke?____ ), I get back: 当我对提供给我的URL进行POST(看起来像https://___.azure.com/workflows/___/triggers/manual/paths/invoke?____ )时,我回来了:

{"error": {
   "code":"AuthorizationFailed",
   "message":"The authentication credentials are not valid."
}}

For this case, I need to accept anonymous calls. 对于这种情况,我需要接受匿名呼叫。

Where in the Azure Portal do I setup the permissions for this? 我在Azure门户的哪里设置权限?

The closest I've found is the "Access Control Configuration", and it is set like this: 我找到的最接近的是“访问控制配置”,它的设置如下:

在此处输入图片说明

Logic Apps不允许匿名呼叫,您需要提供SAS密钥,该密钥在请求卡上生成的网址中提供。

是的,在创建时出现在callbacK URL上的URL应该可以使用。您的URL是否具有SP,sv和sig查询参数?

Found the issue. 找到了问题。 My client-side code was appending a parameter to the URL without realizing the URL already had query parameters. 我的客户端代码将一个参数附加到URL上,而没有意识到URL已经具有查询参数。 As such, it was adding to the last parameter rather than adding a new parameter. 因此,它是添加到最后一个参数,而不是添加新参数。 With that fixed, the call works. 修复该问题后,通话即可正常进行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM