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 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?
- Nivedipa-MSFT
Microsoft
Could you please try to change tenantid to common in appsettings file and check again?
- techie2021Copper 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-MSFT
Microsoft
Could you please go through below sample.
https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/app-auth/nodejs