Forum Discussion

techie2021's avatar
techie2021
Copper Contributor
Nov 22, 2021

Microsoft Teams SDK getAuthToken for multi-tenant AAD application ('common' endpoint)

Hi,

 

I have done the SSO Authentication as documented https://docs.microsoft.com/nl-nl/microsoftteams/platform/tabs/how-to/authentication/auth-aad-sso, it works great. But now, I have changed my AAD Application to be Multi-tenant as explained https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-convert-app-to-be-multi-tenant. It is mentioned to update the code to send requests to /common endpoint.

The call to microsoftTeams.authentication.getAuthToken() however goes to /{tenentid} endpoint. 

How can I change it to go to /common? What am I missing here?

6 Replies

Resources