Hi Jasper Baetslé - This tutorial is basically about sending messages in Microsoft Teams, and it doesn't involve implementing SSO, so guidance related to SSO is missing here. You should refer this guide: https://learn.microsoft.com/en-us/samples/officedev/microsoft-teams-samples/officedev-microsoft-teams-samples-bot-conversation-sso-quickstart-js/
1.If your app is meant to work in Multi-Tenant, then in appSettings.json Set "MicrosoftAppType"
to Multitenant and Set your "MicrosoftAppTenantId"
to common or to your tenant ID (if your intent to use the app in your tenant only)
If your app is meant to work in Single-Tenant, then in appSettings.json Set "MicrosoftAppType"
to Singletenant and Set your "MicrosoftAppTenantId"
to your tenant ID only
3.Yes, webApplicationInfo in the manifest.json is mandatory. If you aren't using SSO, ensure that you enter a dummy string value in this field to your app manifest, for example, https://example
to avoid an error response. For more info please refer: https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema#webapplicationinfo
5.You should provide a Redirect URI that is unique to your application as it will return to this URI when authentication is complete.
Set a redirect URI:
- Select Add a platform.
- Select Single-page application.
- Enter the redirect URI for the app in the following format:
- https://%ngrokDomain%.ngrok-free.app/Auth/End
Set another redirect URI:
- Select Add a platform.
- Select web.
- Enter the redirect URI for the app in the following format:
- https://token.botframework.com/.auth/web/redirect
6.In the connection settings for OAuth, the details would be as mentioned in this doc: https://learn.microsoft.com/en-gb/microsoftteams/platform/bots/how-to/authentication/add-authentication?tabs=dotnet%2Cdotnet-sample#configure-the-identity-provider-connection-and-register-it-with-the-bot
You can also refer: https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/bot-conversation-sso-quickstart/BotSSOSetup.md#3-setup-bot-service-connection-tokenstore
Thanks,
Prasad Das
*************************************************************************
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.