[英]Azure Bot Single Sign On between Single Page Application using authorization code flow
As per the Microsoft documentation, it is expecting us to use implicit flow for Single Sign On between Bot and Single Page Application.根据 Microsoft 文档,我们希望在 Bot 和单页应用程序之间使用隐式流进行单点登录。 At the same time, Microsoft recommends us to move to auth code flow.
同时,微软建议我们转向授权代码流程。 Our client's Azure AD team is not allowing Implicit flow anymore.
我们客户的 Azure AD 团队不再允许隐式流。 Can auth code flow work for SSO between SPA and Azure Bot?
SPA 和 Azure Bot 之间的 SSO 可以使用授权代码流吗?
Bot framework using implicit flow https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/authentication/auth-aad-sso-bots Bot 框架使用隐式流https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/authentication/auth-aad-sso-bots
Implicit flow https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-implicit-grant-flow隐式流程https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-implicit-grant-flow
Create a bot application.创建一个机器人应用程序。
Go to ADD – App registration ( https://go.microsoft.com/fwlink/?linkid=2083908 ) Go 至 ADD – 应用程序注册 ( https://go.microsoft.com/fwlink/?linkid=2083908 )
Register one application注册一个应用程序
Go to Expose an API Go 公开一个 API
Get the Application ID (Client ID)获取应用程序 ID(客户端 ID)
Go to Expose an API Go 公开一个 API
Paste the App ID and click on Save and Continue粘贴 App ID 并单击保存并继续
Go to Client application and Click on Add a Client application Go 到客户端应用程序并单击添加客户端应用程序
Go to Authentication and Click on Add a Platform Go 到 Authentication 然后点击 Add a platform
Click on Single page application.单击单页应用程序。
Give the application redirection URI details.提供应用程序重定向 URI 详细信息。
Click on Configuration in Bot settings单击 Bot 设置中的配置
Under configuration.配置中。 Click on Add OAuth connection.
单击添加 OAuth 连接。 Fill the required details.
填写所需的详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.