验证MS图形时出现400错误的请求

时间:2019-02-11 21:58:38

标签: botframework microsoft-graph

使用模拟器时,我有一个本地机器人在工作。机器人将OAuth卡发送给用户,该用户将获得验证码,并可以使用该验证码成功登录。我将机器人发布到Azure,并注意到当我按下登录按钮时,它将带我到here上面写着“错误请求”。没有其他错误消息显示,所以我不知道问题出在哪里。

我使用以下方式登录用户:

// in constructor
oauthPrompt = new OAuthPrompt("sign-in", { connectionName: "mg-graph", title: "Login" });

dialogs.add(oauthPrompt);`

dialogs.add(
    new WaterfallDialog(
        "wf-sign-in",
        [
            async step => {
                return await step.prompt("sign-in", "Login");
            },
            async step => {
                console.log(step.result.token);
                return step.endDialog();
            }
        ].map(x => x.bind(this))
    )
);

// in onTurn()
await dialogContext.beginDialog("wf-sign-in");

0 个答案:

没有答案
相关问题