microsoft teams development
7 TopicsSameSite cookie problems in deskop version of Teams
Hi, I have created a Teams app, which contains static tabs (i.e. "personal" tabs). The tab content is hosted in SharePoint and uses MSAL v1.4.14 for authentication. However, I'm seeing the following "sameSite" cookie problems: Because a cookie's SameSite attribute was not set or is invalid, it defaults to SameSite=Lax, which will prevents the cookie from being set in a cross-site context in a future version of the browser. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery. Resolve this issue by updating the attributes of the cookie: Specify SameSite=None and Secure if the cookie is intended to be set in cross-site contexts. Note that only cookies sent over HTTPS may use the Secure attribute. Specify SameSite=Strict or SameSite=Lax if the cookie should not be set by cross-site requests This problem only occurs in the Windows desktop version of Teams. I don't see it when I use Teams within a browser. I cannot find any information on how to fix this problem. Is it a bug in the desktop version of Teams and/or the MSAL library? I found the following: https://docs.microsoft.com/en-us/microsoftteams/platform/resources/samesite-cookie-update#samesite-cookie-attribute-2020-release but I am not sure how I can fix my problem. Here are some images of the errors I am seeing: Thanks, George5.8KViews0likes9CommentsContent URL Redirect does not work
I have created a Microsoft team app in the App Studio. The application has a tab with the content configured to external URL. The application works fine on the mobile phone; however does not work on the desktop. It fails on redirection. The logic is that if the user is not authenticated then the web app redirects the user to a custom login page outside of the domain. e.g. content URL is https://xxx.com redirects to https://pqr.com This works just fine in the mobile app; however, it does not redirect in the desktop application. Appreciate any help.3.6KViews1like1CommentSecondary actions in adaptive cards broken for channel conversation
I have a strange behaviour in teams where an adaptive card is rendered differently depending on if the bot is posting it in a chat or in a teams channel. The adaptive card (reduced to the absolute minimum): { "contentType": "application/vnd.microsoft.card.adaptive", "content": { "type": "AdaptiveCard", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.4", "body": [ { "type": "TextBlock", "text": "Intro text" }, { "type": "ActionSet", "actions": [ { "type": "Action.Submit", "title": "Set due date" }, { "type": "Action.Submit", "title": "Secondary option", "mode": "secondary" } ] } ] } } When the bot sends it into a chat, the rendering of the secondary action looks like that (expected behaviour): When it sends a message into a channel, the secondary option is rendered like that: There is a rectangle in front even though there is no image specified. Adding an icon to the action makes it even worse. The icon is not rendered properly but totally blown out of proportion. Is this a bug? Is there maybe a parameter that would prevent this rendering?1.9KViews0likes8CommentsTeams meeting recording and transcript
Hello, In our company we are trying to integrate with Teams. We are looking for a way to make our user install our app or a webhook only once in Teams and let us receive an event when a meeting has ended. When we get the meeting end event, we need to fetch the transcript and video recording. My first approach was to create a bot, but I had to keep adding it to every meeting which is not what I am looking for, although I was able to get the end meeting event, I did not get a URL to fetch the recording from it or be able to add it automatically to the meeting. I am thinking on subscribing to events on teams callRecord using the graph api but I dont see any reference for getting the transcript and recording. https://docs.microsoft.com/en-us/graph/webhooks Any help or directions would be appriciated. Thanks1.2KViews0likes0CommentsMulti-tenant deployment in single skype(On-Premise)
Hi Team, We have one requirement like, Client environment have already MS-Teams along with Skype Hybrid mode. Client moving one of his sub domain to different forest and organization(with new O365 Tenant). We have to integrate with current Skype environment which is already using current Tenant to New tenant. And migrate complete subdomain users to MS-Teams and integrate with Skype while migrating. Someone suggest me, how we can do this ? , is Skype and MS-Teams support Multi tenant ? Is Skype Hybrid mode allow to connect two tenants ? , Namespace1KViews0likes0CommentsChannel-message change notification subscription stopped sending reauthorizationRequired event
Hi Team, We are using Microsoft feature: change notification subscription to create subscriptions for channel-message and chat-messages resources. We use these subscriptions to deliver the messages sent in MS teams to our internal applications. We are using application access token to create the change notification subscriptions. After creating subscriptions, we were able to get the change notifications for channel-message/chat-message resources on our webkook endoint. Also we were able to get the reauthorizationRequired event on lifecycle change notification webhook enpoint. For every reauthorizationRequired event we use to renew the subscription by 70 hours using the application access token. For our channel-message/chat-message subscriptions we only received the reauthorizationRequired events for first couple of days and after that we stopped receiving those events. Because of this we were not able to renew the subscriptions. Could you please guide us to understand the root cause of this issue. Thanks & Regards, Vaibhav Medhekar342Views0likes0Comments