简体   繁体   English

Microsoft Bot Framework,使用Office 365登录

[英]Microsoft Bot Framework, Login with Office 365

I am new in this Bot Framework, I have failed to find enough help on the internet regarding login 365 Authentication. 我是这个Bot Framework的新手,我未能在互联网上找到有关登录365身份验证的足够帮助。

I have developed a simple Card ordering Bot, Now I need to authenticate it with Office365 account. 我已经开发了一个简单的Card Bot Bot,现在需要使用Office365帐户对其进行身份验证。 I have followed this AuthDemo ( https://github.com/tsmatsuz/AuthDemoBot ) 我已经遵循了AuthDemo( https://github.com/tsmatsuz/AuthDemoBot

After clicking Connect on Emulator I have this link : 单击“在模拟器上连接”后,我具有以下链接:

https://login.microsoftonline.com/common/oauth2/authorize?resource=https:%2F%2Foutlook.office365.com%2F&client_id=18ab0821-0bbc-4d05-9f65-a30e34f3faa3&response_type=code&haschrome=1&redirect_uri=https:%2F%2Fauthdemoweb.azurewebsites.net%2FHome%2FAuthorize&x-client-SKU=PCL.Desktop&x-client-Ver=3.13.4.878&x-client-CPU=x64&x-client-OS=Microsoft+Windows+NT+6.2.9200.0 https://login.microsoftonline.com/common/oauth2/authorize?resource=https:%2F%2Foutlook.office365.com%2F&client_id=18ab0821-0bbc-4d05-9f65-a30e34f3faa3&response_type=code&haschrome=1&redirect_uri=https:%2F% 2Fauthdemoweb.azurewebsites.net%2FHome%2FAuthorize&X-客户SKU = PCL.Desktop&X-客户端版本= 3.13.4.878&X-客户CPU = 64&X-客户OS =微软的Windows + NT + + 6.2.9200.0

Which crashes. 哪个崩溃。

Regarding our application 关于我们的申请

  1. I have created an app on https://apps.dev.microsoft.com/#/appList AppID : df0a8a77-708e-443b-88af-41eb6bXXXXXXX 我已经在https://apps.dev.microsoft.com/#/appList AppID上创建了一个应用程序:df0a8a77-708e-443b-88af-41eb6bXXXXXXX
  2. I have added this appID in webConfig of our project. 我已在我们项目的webConfig中添加了此appID。
  3. My BOT is not yet approved and we dont have BOTID and BOTSECRET . 我的BOT尚未批准,我们没有BOTIDBOTSECRET
  4. I have hosted my BOT Code and Login API on our server with SSL implementation. 我已经使用SSL实现将BOT代码和Login API托管在我们的服务器上。 (Code is copied from AuthDemo but Keys are changed) (从AuthDemo复制代码,但更改了密钥)

When I run My code on IIS, It make a link https://msbot.devbatch.com/web/Home/Login?userid=2c1c7fa3 And I get this error : 当我在IIS上运行我的代码时,它建立了一个链接https://msbot.devbatch.com/web/Home/Login?userid=2c1c7fa3并且出现此错误:

Sign In 登入

Sorry, but we're having trouble signing you in. We received a bad request. 抱歉,我们无法登录。我们收到一个错误的请求。 Additional technical information: Correlation ID: a462bfbb-c932-4078-bf8b-b3bbe9dbd78e Timestamp: 2016-10-25 05:36:11Z AADSTS65005: The client application has requested access to resource ' https://outlook.office365.com/ '. 其他技术信息:相关性ID:a462bfbb-c932-4078-bf8b-b3bbe9dbd78e时间戳记:2016-10-25 05:36:11Z AADSTS65005:客户端应用程序已请求访问资源' https://outlook.office365.com/ ' 。 This request has failed because the client has not specified this resource in its requiredResourceAccess list. 该请求失败,因为客户端未在其requiredResourceAccess列表中指定此资源。

I need complete configuration/Steps on Sign in via Office365. 我需要完整的配置/通过Office365登录的步骤。

AuthBot creator here. AuthBot创建者在这里。 The error you're getting essentially means that when you registered your application Azure Active Directory you didn't specify in the permissions that you need access to outlook.office365.com. 从本质上讲,您得到的错误意味着,当您注册应用程序Azure Active Directory时,您没有在需要访问Outlook.office365.com的权限中进行指定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM