代码之家  ›  专栏  ›  技术社区  ›  SuperJMN

获取“botauthenticator验证传入请求失败!“在示例应用程序中

  •  0
  • SuperJMN  · 技术社区  · 6 年前

    我克隆了官员 botbuilder repository,我正在运行名为aadv2bot的示例( link )

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

    嗯,除了 web.config,我什么都没修改。

    但是,我不能让它工作。 在bot模拟器中,我得到的只是在发送消息(“hola”)之后得到的信息。

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

    怎么了?事先谢谢!< P / P命名为aadv2bot( link )

    这是 “使用OAuthcard将用户登录到AAD v2应用程序并使用Microsoft Graph API的bot示例”

    嗯,我什么都没修改,只是 web.config

    但是,我不能让它工作。 在bot模拟器中,我得到的只是在发送消息(“hola”)之后得到的信息。

    enter image description here

    我想我已经输入了正确的信息 Web.CONFIG :

    enter image description here

    怎么了?事先谢谢!

    1 回复  |  直到 6 年前
        1
  •  1
  •   SMshrimant    6 年前

    请你核对一下你的 filename.bot 用下面的代码归档。

    {
        "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"
            }
        ]
    }
    

    (一定要提到 http 对于 endpoint name )