Authentication
15 Topics"You'll need a new app to open this about link"
I have a custom app running inside of Microsoft Teams. Everything works as expected when running it inside the Teams web application. Running it inside the Teams desktop application breaks part of my custom app. The issue arises when making a request to any web API. That could be the Microsoft Graph API or a custom one I've build for the custom, client application. Instead of getting data back when making the request, I get a popup stating "You'll need a new app to open this about link". Look for an app in the Microsoft Store. Yes/No. I've tried all kinds of different things. Different providers, SSO vs Azure Auth. Any help would be highly appreciated. Regards, Tolga35KViews0likes5CommentsMSAL vs. Microsoft Teams
As ADAL hasn't been touched in over two years now, I have migrated my application to MSAL. Sadly enough the Teams docs are still ADAL based. I have an application that is working fine outside Microsoft Teams. Once I embed it as an app inside Microsoft Teams, two things happen: MSAL's acquireTokenSilent method, which returns a promise, fails silently without any possibility to know what happened. This has been raised before, many times: Not receiving the token response from MSAL Acquire a token silently from the MS Teams Iframe #222 acquireTokenSilent not working inside Teams app? I tried to enable MSAL's debug logging info. Working fine stand-alone; inside Teams: not one log message. There seems to have been a lab demo with MSAL's acquireTokenSilent in it, but that probably worked because it was launched from the config screen (or elsewhere) and not from the tab. So on what location would acquireTokenSilent work? Should we move it to such an authentication popup to get it to work (far less silent though).5.7KViews0likes6CommentsTeams App loading Microsoft Form - blank page
Hello For my client I have built a form in Forms which has been wrapped up into a simple Teams app and added to the main navigation bar in Teams. The app manifest just contains a single staticTab with the contentURL being the link to complete the Form, as generated by Forms (starting https://forms.microsoft.com/Pages/ResponsePage.aspx) This works fine in the web Teams client. However, in the desktop client, it only works if we have set the Form to "anyone with the link". If we set it to "people in my organisation" then the when we load the app it shows the green "loading" message for a second, then goes completely blank. No form. I guess the problem is something to do with the authentication, but I didn't think I would have to do anything special to get this to work. Again it works perfectly in the web client, we only see this error in the desktop client. Is anyone able to replicate this? Any ideas on a resolution? Many thanks3.8KViews0likes7CommentsSend personal messages to Teams from daemon service.
Hello, I need to send notifications to my colleagues using Teams in case of emergency which is detected by monitoring system. These messages must be sent on behalf of background service which cannot follow interactive user authentication flow and therefore cannot get Authorization Code to authenticate on behalf of user. I can connect to Azure AD using Graph SDK for Golang and get all users of my organization. But I cannot use Chat API because it's not allowed in "application only context". Is there a way to send personal user messages from daemon service?Solved3.7KViews1like7Commentsgraph toolkit SSO without Login Component
in my teams tab i have followed the below link and authenticated Teams Tab. https://docs.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/authentication/auth-aad-sso I want to able to use graph tool kit with out Login component as i have sso for tab, is it possible to do so? if so can i call the graph toolkit components3.4KViews1like15CommentsHow do I get my teams bot to authenticate to a web service
I have a teams bot which I want to use as an interface for my service stack webservice however the token I have access to is not being accepted by the web service. I followed the "AAD SSO for tabs and message extension" tutorial to set up my Azure instance and get a basic bot up and running. When I modified the query handler to send a request to a web service with the token provided it is responding with a login page. This is the code that I added to the Simple Graph Client in a new method which passes in what the user types as query HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://<my website>/api/ws/v1/search?query=" + query); request.Headers.Add("Authorization", "Bearer " + _token); request.Method = "GET"; request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate; using (System.Net.HttpWebResponse response = (HttpWebResponse)request.GetResponse()) using (Stream stream = response.GetResponseStream()) using (StreamReader reader = new StreamReader(stream)) { return reader.ReadToEnd(); } Do I need to make use of a shared certificate? or is there some additional configuration that I have missed which is necessary to make this situation work?3.1KViews0likes7CommentsTeams custom personal app (SPFx) - slow authentication startup in desktop app
Hi We've implemented quite some Teams personal apps at clients now and the custom Teams apps in the (Teams desktop app) sometimes have load times ranging from 4s - 10s before our custom code even begins. The Teams web app handles auth in a different way, so never any issue there. It appears to have something to do with the way authentication is done in the desktop app (acquire OBO token call...). With a trick, you can also get the console & network tab to show in the desktop app. That way we can verify when our React is loaded & starting + when our backend api calls are done. Clients are complaining about the response times and rightfully so. The response times before our code hits also varies greatly between tenants as mentioned. Has anyone had the same experience? Is there a magic wonder solution out there that I don't know of yet (e.g. simple AAD authentication setting) ?2.1KViews0likes2CommentsMicrosoft Teams: webpage Authentication inside tab
Hi, I'm developing a webapp that's inside a tab in microsoft teams. The webapp uses the GRAPH API and SharePoint API to retrieve data from sharepoint and data from graph. I need to use both api's to utilise all the resources to the max. How can I authenticate inside the microsoft teams tab for BOTH graph and sharepoint? Do I need to do 2 authentications so I have 2 tokens? (1 for each endpoint) Or can I fetch 1 token that works for both api's?1.6KViews0likes2Comments