使用Azure机器人服务验证OAuth的问题 [英] Issues authenticating OAuth with Azure bot Service

查看:86
本文介绍了使用Azure机器人服务验证OAuth的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用botframework(v4)编写了一个c#机器人,该机器人通过oAuth(aadv2)连接到用户的帐户.我遵循了这个

I recently wrote a c# bot using botframework (v4) that connects to users' account through oAuth (aadv2). I followed this article for the azure setup.

对于大多数用户来说,它的运行情况还算不错,但是其中一小部分无法获得魔幻的代码.

For most users, it's working perfectly fine but a small part of them can't get the magic code.

相反,他们在AD门户登录后得到了404)

Instead they got a 404 after login in AD portal)

这是对auth url进行卷曲的结果:

Here's the result of a curl against the auth url :

curl https://token.botframework.com/api/oauth/signin?signin=921d46120f2743bfe0e82b4c859898cda9bec041f8 -v -L

< Location: https://token.botframework.com/.auth/web/login/6cea70f5-7239-3769-57ce-9e90e9003dcc_aaaf9313-e069-86b0-6a34?redirect_uri=https%3a%2f%2ftoken.botframework.com%2fapi%2foauth%2fPostSignInCallback%3fsignin%3d921d46120f2743bfe0e82b4c859898cda9bec041f8

> GET /.auth/web/login/6cea70f5-7239-3769-57ce-9e90e9003dcc_aaaf9313-e069-86b0-6a34?redirect_uri=https%3a%2f%2ftoken.botframework.com%2fapi%2foauth%2fPostSignInCallback%3fsignin%3d921d46120f2743bfe0e82b4c859898cda9bec041f8 HTTP/1.1
> Host: token.botframework.com
< HTTP/1.1 404 Not Found
< Content-Length: 103
< Content-Type: text/html
< Server: Microsoft-IIS/10.0
< X-Content-Type-Options: nosniff
< Date: Thu, 13 Dec 2018 16:28:12 GMT
<
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.* Connection #0 to host token.botframework.com left intact

就像我说的那样,它对大多数用户都可以正常工作,所以我认为这不是门户或机器人中的配置问题...

And as I said, it's working for most of the users perfectly fine so I don't think it's a configuration issue in the portal or in the bot...

推荐答案

我也遇到了这个问题.它大约在一周前开始.

I have this issue also. It started about one weeks ago.

尚无解决方案-已与MS Bot Framework Team共同提出.

No solution as yet - have raised it with MS Bot Framework Team.

这篇关于使用Azure机器人服务验证OAuth的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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