2016-05-12 60 views
1

我试图重新构建Build 2016上的特色微软BOT股票应用程序,但无法在模拟器中成功测试bot。具有基本身份验证的HTTP Microsoft Bot Framework

模拟器给我这个错误:

You are using HTTP with basic auth, which is not a secure way to pass credentials. If you want to use an unsecured HTTP endpoint then you should disable basic authentication.

但是我怎么做到这一点?我只想测试我的应用程序没有HTTPS和那种东西。

回答

1

为了测试你的机器人,而不使用HTTPS和只是简单的层没有安全;你可以简单地进入你的主控制器(如MessagesController.cs)和删除/注释掉这行:

[BotAuthentication] 

您将不再需要HTTPS。