使用Azure机器人服务验证OAuth的问题

时间:2018-12-13 16:46:45

标签: azure-active-directory botframework

我最近使用botframework(v4)编写了一个c#机器人,该机器人通过oAuth(aadv2)连接到用户的帐户。我遵循此article进行了天蓝色的设置。

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

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

emulator can't login 这是对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

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

1 个答案:

答案 0 :(得分:0)

我也有这个问题。它大约在一周前开始。

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