Forum Discussion
techie2021
Nov 23, 2021Copper Contributor
Microsoft Teams SDK getAuthToken for multi-tenant AAD application ('common' endpoint)
Hi, I have done the SSO Authentication as documented here, it works great. But now, I have changed my AAD Application to be Multi-tenant as explained here. It is mentioned to update the code to s...
Nivedipa-MSFT
Nov 23, 2021Microsoft
Could you please try to change tenantid to common in appsettings file and check again?
- techie2021Nov 25, 2021Copper ContributorHi Nivedipa,
Thanks for the reply. I am working in nodeJS and getAuthToken method is not passed any tenentid or common. Could you please guide me for nodeJS?- Nivedipa-MSFTNov 25, 2021Microsoft
Could you please go through below sample.
https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/app-auth/nodejs- techie2021Nov 25, 2021Copper Contributor
Yes, I have implemented it the same way, but the getAuthToken call goes to tenant endpoint not 'common'