External Websites Published as Apps through App Studio

Occasional Contributor

I'm new to creating app packages in app studio. I have an external web-delivered application that I want to turn into a packaged app so it can be pinned to the sidebar. It's setup and working, but unfortunately, the site launches a new window after a user logs in, and that new window is kicking off a browser session instead of loading inside the app. Is there anyway to constrain things to launching within the teams client? 

12 Replies
do you own the target website, such that you're able to make changes to it? If so, you could detect that it's a Teams visitor and change the behaviour. If not, what exactly would you expect to happen, given that this is the site's behaviour?

@Hilton Giesenow - Sadly we do not own the target website. It's a SaaS app that we pay for. The underpinning for Teams is an HTML5 framework. What I was hoping was that in the desktop app there might be a way to have new windows that are opened by an app launch inside the teams client windows (potentially replacing the previously displayed page, or maybe by creating a tab?).  Right now when I package the website in App Studio and then pin it to the sidebar, the site launches, authenticates, and then launches a new window which spawns a browser and takes the user outside of teams (boooo). I'd like to keep them inside the teams framework.  I hope that helps / makes sense. 

I should also mention too that I was assuming that if it was possible, it might require putting a Sharepoint wrapper around it, or doing some code-work inside App Studio... I'm not specifically looking for a Teams desktop client hack...

@Todd_Knapp this is tricky because it's 3rd party. Is that popup -necessary-, or would it be fine to block it entirely (would the user miss it if it wasn't there?)?

@Hilton Giesenow - Yeah.... it's a needed popup unfortunately. The software does something strange with MFA and launches a window temporarily during auth. I suspected this would be difficult. I was hoping that I could put the whole thing into a frame in Sharepoint and then publish that into the app? I dunno... I'm grasping at straws :) 

What happens once the user is authenticated? Can they just close the browser tab?
Unfortunately, no.... the content portion is what's launching in the other browser. If you'd like to see some examples, I can do a screen cap or a short video for you...
ahhh ok, that's tricky. I'm out of ideas, I'm afraid :(
Thanks for trying! :)
Sure thing, sorry I couldn't help more

@Todd_Knapp If your external app have any auth implemented, you need to implement authentication for your tabs else it will redirect to browser also please make sure you have added your URL to validDomain array

@Hilton Giesenow What can be the proper way to detect if it's a Teams visitor?
I've been looking around for a solution to this.
Please let me know.
Thank you