Skype for Business频道未正确通过身份验证凭据 [英] Skype for Business channel doesn't pass authentication credentials correctly

查看:313
本文介绍了Skype for Business频道未正确通过身份验证凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用该模板创建的.NET Bot Framework机器人,并已在其他渠道和仪表板上进行了测试.

I have a .NET Bot Framework bot created using the template and tested on other channels and in the dashboard.

我已经添加了Skype for Business频道并为我的租户执行了PowerShell cmdlet.但是,我不断收到答复联系目标用户时发生错误".

I've added the Skype for Business channel and performed the PowerShell cmdlets for my tenant. However, I constantly get the reply "Error happened in contacting target user".

我在Bot Framework仪表板中查找了问题,问题是Bot Framework从我的代码中获得了401 Unauthorized.请记住,这在其他渠道也能正常工作.

I looked in the Bot Framework Dashboard for issues, and the problem is that the Bot Framework is getting back a 401 Unauthorized from my code. Remember that this works fine in other channels.

怀疑Skype for Business如何通过(或不通过)身份验证令牌时出现问题,我注释掉了BotAuthentication装饰器.突然,一切正常.因此,我认为Skype for Business频道及其通过身份验证凭据的方式存在问题,因为这种情况显然并不理想.

Suspecting a problem with how Skype for Business passes (or doesn't pass) the authentication tokens I commented out the BotAuthentication decorator. Suddenly everything works fine. So I think there's a problem with the Skype for Business channel and how it passes the authentication credentials, as this situation clearly isn't ideal.

推荐答案

仅回答我自己的问题.我看到此问题的原因是因为我没有最新版本的Microsoft.Bot.Builder.我需要运行3.5+,但不是.我已经在这里写下了它(还有更新NuGet软件包的说明,如果需要的话):

Just to answer my own question on this. The reason I was seeing this problem was because I did not have the latest version of Microsoft.Bot.Builder. I needed to be running 3.5+ and I wasn't. I've written it up here (along with instructions for updating the NuGet package if you need that): https://blog.thoughtstuff.co.uk/2017/06/how-to-enable-your-bot-framework-bot-on-skype-for-business-part-2-or-how-i-followed-the-instructions-and-it-worked/

这篇关于Skype for Business频道未正确通过身份验证凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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