This is demo code for an SSO Tab. For full tutorial on how to configure the apps see
- Build a Tab with Single-Sign-On Support
- Microsoft Teams Tabs SSO and Microsoft Graph - the "on-behalf-of" blog post
In order to get this demo to work you need to create and configure a .env
file in the root folder. It should have the following contents:
# The domain name of where you host your application
HOSTNAME=<YOUR FQDN>
PORT=3007
NGROK_AUTH=<YOUR NGROK AUTH SETTINGS>
NGROK_SUBDOMAIN=<YOUR NGROK SUBDOMAIN>
NGROK_REGION=
DEBUG=msteams graphRouter
SSODEMO_APP_ID=<YOUR TAB CLIENT ID>
SSODEMO_APP_URI=<YOUR TAB APPLICATION ID URI>
SSODEMO_APP_SECRET=<YOUR TAB CLIENT SECRET>