得到"BotAuthenticator未能验证传入请求!";在示例应用程序中 [英] Getting "BotAuthenticator failed to authenticate incoming request!" in sample application

查看:79
本文介绍了得到"BotAuthenticator未能验证传入请求!";在示例应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经克隆了官方的 BotBuilder 存储库,并且正在运行名为AadV2Bot的示例(链接)

I've cloned the official BotBuilder repository and I'm running the sample named AadV2Bot (link)

这是使用OAuthCard将用户登录到AAD v2应用程序并使用Microsoft Graph Api的示例"

好吧,除了web.config,我什么都没修改.

Well, I haven't modified anything but web.config.

但是,我无法使其正常运行. 在Bot仿真器内部,我得到的只是发送消息("Hola")后的信息

However, I cannot get it working. Inside the Bot Emulator, all I'm getting is this after I send a message ("Hola")

我想我已经在web.config中输入了正确的信息:

I think I've put the correct my information in web.config:

怎么了?

推荐答案

能否请您使用以下代码交叉检查您的filename.bot文件.

Could you please cross check your filename.bot file with below code.

{
    "name": "final",
    "description": "",
    "secretKey": "",
    "services": [
        {
            "appId": "",
            "id": "xxxxx-xx-xx-xxx-xxxxx",
            "type": "endpoint",
            "appPassword": "",
            "endpoint": "http://localhost:3978/api/messages",
            "name": "http://localhost:3978/api/messages"
        }
    ]
}

(确保为endpointname提及http)

这篇关于得到"BotAuthenticator未能验证传入请求!";在示例应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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