简体   繁体   English

Azure 使用授权代码流的单页应用程序之间的机器人单点登录

[英]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.

相关问题 聊天机器人单一登录 - Chat bot single sign on 有没有办法通过 DirectLine API 和 Azure Web 应用程序使用 Oauth2 对 Microsoft Bot 框架网络聊天进行单点登录。 - Is there a way to do Single Sign On for the Microsoft Bot framework webchat via the DirectLine API and an Azure Web App using an Oauth2.0 abstraction 授权空端点Bot Azure - Authorization empty endpoint Bot Azure 用于多个域的单个 Azure 机器人,需要示例项目 - Single Azure bot for multiple domains, require sample project 将单点登录添加到与 Microsoft Teams 集成的 python 聊天机器人(Microsoft Bot Framework) - add Single Sign-On to a python chatbot (Microsoft Bot Framework ) integrated with Microsoft Teams 如何将动态数据传递给Azure Bot,以使单个Bot根据所提供的数据进行操作 - how to pass Dynamic Data to a Azure Bot so that a single Bot behave according to the data Feeded Azure Bot 服务示例 AuthenticationBot 登录卡不起作用 (application/vnd.microsoft.card.oauth) - Azure Bot Service Sample AuthenticationBot Sign-in card not working (application/vnd.microsoft.card.oauth) 通过Angular网页对Microsoft Bot v4(WebChat)进行单点登录(SSO) - Single Sign On(SSO) to Microsoft Bot v4 (WebChat) through Angular webpage 如何在 Azure 中向 Microsoft Teams Bot 添加授权 - How to add authorization to Microsoft Teams Bot in Azure 如何使用 Azure BOT 服务启用 2 个 BOT 之间的通信? - How to enable communication between 2 BOTs using Azure BOT service?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM