Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website mode for tabs #172

Open
sr258 opened this issue Jan 25, 2021 · 0 comments
Open

Website mode for tabs #172

sr258 opened this issue Jan 25, 2021 · 0 comments

Comments

@sr258
Copy link

sr258 commented Jan 25, 2021

As far as I‘ve understood it, Teams offers links to a website mode of custom tabs in various places (e.g. in the mobile client if the app hasn‘t been been released for mobile usage by Microsoft). By default the URL of the website is the same as the one for the tab:

websiteUrl: host + "/<%=tabName%>/?name={loginHint}&tenant={tid}&group={groupId}&theme={theme}",

I‘d like users who open the URL in the browser to see the same content as they would when opening the tab inside Teams. I need SSO support in my tab / web app and have followed the tutorial on SSO (it works fine inside Teams). How do I authenticate users when the user doesn‘t open the page inside Teams but by simply navigating to the URL directly? I guess I simply have to do a „normal“ OAuth 2 login, but I haven‘t found the right documentation on how to do this. Do I need to register a second app at Azure AD for the web app or can I use the app registration I already have for the teams app? I didn‘t configure any OAuth endpoints, as they were not needed for the auth flow inside teams. What happens if I add them for the web app and the user authenticates inside teams?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants