配置Slack身份验证令牌 [英] Configure Slack authentication token

查看:189
本文介绍了配置Slack身份验证令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图弄清楚如何使用azure函数配置松弛身份验证令牌.首先,尝试创建类似于WebJobs(MS_WebHookReceiverSecret_Slack)的应用程序设置,但是它似乎不起作用.我得到的错误是

Trying to figure out how to configure slack authentication token with azure functions. First, attempted to create an app setting just like for WebJobs (MS_WebHookReceiverSecret_Slack) but it doesn't seem to work. The error I get is

HTTP请求中提供的令牌"参数与预期值不匹配.

The 'token' parameter provided in the HTTP request did not match the expected value.

推荐答案

在功能"中,您没有通过应用程序设置"配置 ASP.NET WebHook 接收器信息.当您创建WebHook函数时,我们会在功能应用程序中的轻量级秘密存储区中生成并存储配置.我们这样做是为了避免添加此类功能时的站点重新启动费用.

In Functions, you do not configure the ASP.NET WebHook receiver info via App Settings. When you create a WebHook function, we generate and store the configuration in our own light weight secret store in the Function App. We do this to avoid the site restart cost when such functions are added.

例如,如果您从我们拥有的GitHub WebHook模板(C#或Node)开始,您将看到它的实际效果.我们会在开发"标签用户界面中为您提供触发URL和GitHub机密.

For example, if you start from the GitHub WebHook templates we have (either C# or Node), you'll see this in action. We hand you the trigger URL and GitHub secret required in the Develop tab UI.

即使Functions运行时使所有ASP.NET WebHook接收器都可用(我们在运行时中注册了它们),我们的UI和模板尚未赶上.您可以从Http模板开始,然后在集成"选项卡上选择 WebHook类型进行设置.

Even though the Functions runtime makes ALL the ASP.NET WebHook Receivers available (we register them in the runtime), our UI and templates haven't caught up yet. You can start from an Http template then select the WebHook type on the Integrate tab to get it set up.

我们将很快将其余的接收器加载到UI(以及一些模板)中.问题是,有很多,我们还没有机会使用Functions对其进行全面测试,以确保端到端流程完美运行.您可能仍然会遇到Content-Types等问题,直到我们有机会给予他们应有的所有爱:)我们的

We'll be onboarding the rest of the receivers into the UI (and some templates as well) soon. The issue is that there are many and we haven't had a chance to test them all out yet with Functions to ensure the end to end flows work flawlessly. You may still run into issues with Content-Types etc. until we have a chance to give them all the love they deserve :) We have some issues in our repo tracking that. Feel free to open your own issues as you run into them and we'll address them, thanks :)

这篇关于配置Slack身份验证令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆