简体   繁体   English

从选项卡到聊天频道的 MS Teams 链接仅在移动应用上请求授权

[英]MS Teams Links from Tab to Chat Channels request authorization only on Mobile App

We have a teams application that uses a grid in a custom tab (user tab) to display a list of channels with certain details related to the operation of the company.我们有一个团队应用程序,它使用自定义选项卡(用户选项卡)中的网格来显示频道列表,其中包含与公司运营相关的某些详细信息。 The idea is that when the user of the app is interested on following one of the items in the list they click and are redirected to the "Team - Channel" that is related to that item in the list.这个想法是,当应用程序的用户对关注列表中的某个项目感兴趣时,他们单击并被重定向到与列表中该项目相关的“团队 - 频道”。 The Teams and Channel are created dynamically by our application using MS GRAPH API in the organization where the app is installed.团队和频道是由我们的应用程序在安装应用程序的组织中使用 MS GRAPH API 动态创建的。 All this works well and we store in our own backend the details of each channel created (The url provided by the Graph API to be able to redirect users to those channels).所有这些都运行良好,我们将创建的每个通道的详细信息存储在我们自己的后端(图 API 提供的 url 能够将用户重定向到这些通道)。

All this works well and in the web UI and desktop version of the app the behavior is flawless.所有这些都运行良好,在 web UI 和桌面版本的应用程序中,行为完美无缺。 Although when testing the mobile version of MS TEAMS with an ANDROID tablet (Galaxy Tablet with Android V 10 and MS Teams V 1416/1.0.0.2021020402) We noticed that users which are either "Owners" or "Members" of the linked channels get a message "requesting to join" the channel when they click the link in the application tab that should redirect them to the specified channel.虽然在使用 ANDROID 平板电脑(带有 Android V 10 和 MS Teams V 1416/1.0.0.2021020402 的 Galaxy 平板电脑)测试 MS TEAMS 的移动版本时,我们注意到用户是链接频道的“所有者”或“M”当他们单击应将他们重定向到指定频道的应用程序选项卡中的链接时,消息“请求加入”频道。 The same users can anyways from the mobile application itself see the team and channel related to the entry in the list and select it... and chat on it... but the link from our App tab to the channel itself pops up the "Request to Join" screen.无论如何,相同的用户可以从移动应用程序本身看到与列表中的条目相关的团队和频道以及 select 它......并在上面聊天......但是从我们的应用选项卡到频道本身的链接会弹出“请求加入”屏幕。

The situation has been as well a bit erratic... sometimes the link works as expected in the mobile app and all of the sudden the app start requesting access when accessing the link.情况也有点不稳定......有时链接在移动应用程序中按预期工作,并且突然间应用程序在访问链接时开始请求访问。 We are wondering if is related with the fact that we create the teams and channels dynamically and maybe the mobile app caches the access to the user channels creating a conflict with recently added channels... just a theory.我们想知道是否与我们动态创建团队和频道这一事实有关,也许移动应用程序缓存了对用户频道的访问,从而与最近添加的频道产生冲突……只是一个理论。

Any help or idea or similar experience is greatly appreciated.非常感谢任何帮助或想法或类似经验。 Our application is close to hit production and this erratic behavior might render it unusable.我们的应用程序即将投入生产,这种不稳定的行为可能会导致它无法使用。

Thanks!谢谢!

Jorge Luna.豪尔赫·卢纳。

We hope you are trying for authentication flow for tabs.我们希望您正在尝试标签的身份验证流程。 OAuth 2.0 is an open standard for authentication and authorization used by Azure Active Directory (AAD) and many other identity providers. OAuth 2.0 是 Azure Active Directory (AAD) 和许多其他身份提供者使用的身份验证和授权的开放标准。 A basic understanding of OAuth 2.0 is a prerequisite for working with authentication in Teams.基本了解 OAuth 2.0 是在 Teams 中使用身份验证的先决条件。 For more information, see OAuth 2 simplified that is easier to follow than the formal specification.有关详细信息,请参阅 OAuth 2 简化版,它比正式规范更易于遵循。 Authentication flow for tabs and bots are different because tabs are similar to websites so they can use OAuth 2.0 directly.选项卡和机器人的身份验证流程不同,因为选项卡与网站相似,因此它们可以直接使用 OAuth 2.0。 Bots do a few things differently, but the core concepts are identical.机器人做一些不同的事情,但核心概念是相同的。

Could you please try the below sample code .您能否尝试以下示例代码

If you are still facing the issue please write to Microsoft Teams Community如果您仍然遇到问题,请写信给Microsoft Teams 社区

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

相关问题 从我的 Android 应用程序启动与 MS Teams Android 应用程序中的用户聊天 - Launch chat with user in MS Teams Android app from my android app 不同渠道对移动应用链接的处理方式不同 - Mobile App Links handled differently across channels 从我的 Flutter 应用程序加入 MS Teams 会议 - Join MS Teams meeting from my flutter app Microsoft Teams - 如何从 Android Intent 启动 MS Teams - Microsoft Teams - How to launch MS Teams from Android Intent 自适应卡未在 Teams 移动应用上呈现 - Adaptive card is not rendered on Teams mobile app Chrome 自定义选项卡链接不会启动应用程序,但移动版 chrome 浏览器会 - Chrome Custom tab links does not launch the app, but mobile chrome browser does 从移动应用全屏打开外部链接 - Open external links in full screen from mobile app 如何使用各自的本机应用程序打开移动网站的链接 - How to open links from a mobile website using the respective native app 检测来自移动应用程序的http请求 - Detecting http request from a mobile app 谷歌 OAuth2 请求中的 redirect_uri 究竟是什么,用于在移动应用中获取授权码? - What exactly is redirect_uri in Google OAuth2 request for getting authorization code in Mobile App?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM