Teams Embeded Iframe with SSO

Copper Contributor

Hello I am running into an intresting problem, and hoping someone is able to help. I have process in place where a user can install an app, and use SSO to sign on through a embeded Iframe tab. On initial setup I am able to sign in with the SSO and it works just fine and functions as expected.

 

The problem arsises when a new users come to sign in the the tab with SSO, or if you log out of teams and back in. 

If you log out of teams you will be promted to login on the page, and you can choose SSO. Once you click sign on with SSO the whole tab now becomes blank and can't process or do anything. 

I Saw this post and thought it was applicable, but the application IS visible at first, but once they login it errors out. 
https://techcommunity.microsoft.com/t5/teams-developer/custom-teams-app-showing-blank-screen/m-p/255...

These are the two calls it makes:
myapplication.url/returnUrl
->That forwards to (Where ${} have actual values)
https://login.microsoftonline.com/appId/saml2?SAMLRequest=${TOKEN}&RelayState=${RELAYSTATE}
There is also a couple of weird things like this 

https://teams.microsoft.com/desktopclient/update/1.4.00.22265/osx/x64?ring=general&isDaemonUpdater=t...


I was able to capute this in fiddler, and I can see this indeed does have a response to login, but for some reason, teams just does not render this.

I am happy to provide more insight if needed, but hopefully that engough to have someone see what the problem is.

Testing this in web app I see:

Refused to display 'https://login.microsoftonline.com/' in a frame because it set 'X-Frame-Options' to 'deny'.

https://stackoverflow.com/questions/40795633/x-frame-option-deny-error-when-aad-sign-in-in-office-ad...

Think something in here: https://docs.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/tab-requirements was missed but I'm not seeing anything that stands out overly.

Appreciate any insights!

2 Replies

@setuprc - Could you please share a sample or minimal code for us to repro the issue?

@setuprc - Could you please share the details so that we can test it from our end.

Thanks,

Chetan Sharma

------------------------------------------------------

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.