youtube image
From YouTube: Single sign-on (SSO) in Microsoft Teams tabs with Azure Active Directory

Description

#Microsoft365 #MicrosoftTeams #SSO

In this Microsoft 365 Code | Decode video, Bob German and Rabia Williams demystify SSO or Single Sign On in a Microsoft Teams tab app.

Check out this video in blog form here: https://devblogs.microsoft.com/microsoft365dev/lets-decode-single-sign-on-sso-in-microsoft-teams-tabs/

🤔 Why do you need SSO?
Applications that are interconnected yet independent often require users to login separately to access and use them. This hampers with the overall usability and satisfaction of users while using these applications. We can fix this by enabling SSO in Teams which will allow the teams tab application to use services connected to Azure AD, with security and compliance without the need to sign in again and again. No pop up, no prompts.

🤔 What is SSO for any application?
Single sign-on allow users to log in once with their credentials and access services without having to re-enter them over and over.

🤔What is Teams SSO?
Teams SSO is when users can sign in to Microsoft Teams using their credentials and use a custom applications in Teams, that may be using a service connected to Azure AD without having to re-enter credentials in any devices and are signed in automatically.

🤔How can you enable SSO in Teams Tab application?
There are three steps to do to enable SSO in your Teams tab application.
1. Azure AD App registration: https://docs.microsoft.com/en-gb/microsoftteams/platform/tabs/how-to/authentication/auth-aad-sso?WT.mc_id=m365-43962-cxa#develop-an-sso-microsoft-teams-tab
2. Manifest updates: https://docs.microsoft.com/en-gb/microsoftteams/platform/tabs/how-to/authentication/auth-aad-sso?WT.mc_id=m365-43962-cxa#2-update-your-teams-application-manifest
3. Access token exchange code using On-Behalf-Of flow: https://docs.microsoft.com/en-gb/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow?WT.mc_id=m365-43962-cxa

💻 The base code sample used is here: https://github.com/OfficeDev/TeamsAuth

Microsoft 365 code | decode is a series that focuses on breaking down topics for developers. Subscribe to the Microsoft 365 Developer channel on YouTube for more videos like this: https://www.youtube.com/Microsoft365Developer?sub_confirmation=1

🔗 LINKS 🔗
⭐️ Teams Tab SSO documentation https://aka.ms/teams-tab-sso
⭐️ Securely connect to Microsoft Graph from Teams tabs using SSO
⭐️ Sample code used in the video
⭐️ MS Graph Get user https://aka.ms/graph-me
⭐️ On-Behalf-Of Flow https://aka.ms/obo-flow
⭐️ Teams’ manifest schema https://aka.ms/teams-manifest-schema
⭐️ Join the M365 developer program https://aka.ms/m365cd-join-pgm

0:00 Why do you need SSO?
3:16 What is SSO?
5:19 SSO in Teams tab
7:31 What you’ll need to Enable SSO in you Teams tab
8:17 App registration in Azure Active Directory
12:44 Manifest file changes for SSO
13:51 Sample demo
17:15 Token claim
21:42 Demo in Postman
25:01 Prompt for consent in Team tab SSO
33:05 Wrap up