Forum Discussion
How to load Component in App interface of teams apps
Thank you for replying. I did https://github.com/OfficeDev/msteams-tabs-sso-sample-nodejs SSO login type of authentication. Now please tell me how to generate sessionId for calling API
ManikantSingh - To call Graph APIs you need access token. You can get the access token by calling following method:
Get an authentication token from your client-side code
var authTokenRequest = { successCallback: function(result) { console.log("Success: " + result); }, failureCallback: function(error) { console.log("Failure: " + error); }, }; microsoftTeams.authentication.getAuthToken(authTokenRequest);
Also, please take a look at Asking for additional consent using the Auth API.
- techie2021Nov 23, 2021Copper ContributorMy AAD Application is multi-tenant but the getAuthToken takes to /{tenantID} endpoint. How can I make the call to /common?
- ManikantSinghAug 20, 2020Copper Contributor
Wajeed-MSFT Thank you for replying
I pass session Id parameter in API called to identify user`s session in web application project
For Teams Apps, how to generate this sessionId to integrate with web application project when I am using SSO login- Wajeed-MSFTAug 20, 2020
Microsoft
ManikantSingh - In Token-based Authentication no session is persisted server-side (stateless). You can pass your access token which then can be used to call Graph APIs.