有没有一种方法可以使用名为'代码&#x27的参数。在我的Azure功能中?
我正在使用Azure函数作为静态Web应用程序的后端。为了连接到第三方平台,我需要浏览OAUTH授权代码流,其中包括使用Quary参数命名code
的第三方调用我的功能。似乎函数将其用于我不使用的某些内部验证目的,并且在达到我的代码之前,我得到了500响应 - 我确定问题是有一个名为code
的参数。有没有一种方法可以通过Azure功能来完成这项工作?
我正在使用python来完成我的功能,但我认为这没有相关。
I am using Azure Functions as the back end for a static web app. In order to connect to a 3rd party platform, I need to go through the OAuth Authorization Code flow, which includes the third party calling my function with a query parameter named code
. It seems that Functions uses this for some internal auth purposes which I am not using, and I get a 500 response before it even hits my code - I've determined the problem is having a parameter named code
. Is there a way to make this work with Azure Functions?
I am using Python for my function but I don't think that's relevant.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想出了静态Web应用程序中页面的解决方法,其中一些JavaScript将参数重命名并重定向到该函数:
I've come up with a workaround of a page in the static web app with some JavaScript that renames the parameter and redirects to the function: