How to manage session/cookies for custom application integrated in Teams Desktop application ?

%3CLINGO-SUB%20id%3D%22lingo-sub-1728933%22%20slang%3D%22en-US%22%3EHow%20to%20manage%20session%2Fcookies%20for%20custom%20application%20integrated%20in%20Teams%20Desktop%20application%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1728933%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3CBR%20%2F%3EI%20have%20created%20custom%20application%20and%20provided%20URL%20in%20manifest%20file%20to%20call%20the%20page%20in%20teams.%3CBR%20%2F%3EEach%20tab%20has%20unique%20url%20to%20redirect%20and%20when%20user%20click%20tab%20it%20goes%20to%20site%20and%20check%20session%2Fcookie%20if%20it%20is%20not%20there%20it%20will%20ask%20for%20login%20credentials.%20after%20login%20while%20click%20second%20tab%20I%20don't%20have%20to%20enter%20credentials%20for%20web%20version%20of%20Teams%20while%20in%20Desktop%20app%20if%20I%20go%20to%20second%20tab%20it%20asks%20me%20for%20credentials%20to%20go%20into%20the%20page.%3CBR%20%2F%3EHow%20I%20can%20manage%20session%2Fcookie%20for%20desktop%20Teams%20app%20(for%20my%20custom%20application%20inside).%3CBR%20%2F%3EPlease%20check%20attachment%20it%20may%20help%20you%20to%20answer%20the%20question.%3CBR%20%2F%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1728933%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1729161%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20manage%20session%2Fcookies%20for%20custom%20application%20integrated%20in%20Teams%20Desktop%20application%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1729161%22%20slang%3D%22en-US%22%3E%3CP%3ETo%20configure%20a%20policy%20to%20leverage%20device%20management%20via%20client%20certificates%3A%3C%2FP%3E%3CP%3EIn%20Cloud%20App%20Security%2C%20in%20the%20menu%20bar%2C%20click%20the%20settings%20cog%20settings%20icon%20and%20select%20Settings.%3C%2FP%3E%3CP%3ESelect%20the%20Device%20identification%20tab.%3C%2FP%3E%3CP%3EUpload%20as%20many%20root%20or%20intermediate%20certificates%20as%20you%20require.%3C%2FP%3E%3CP%3ETip%3C%2FP%3E%3CP%3ETo%20test%20how%20this%20works%2C%20you%20can%20use%20our%20sample%20root%20CA%20and%20client%20certificate%2C%20as%20follows%3A%3C%2FP%3E%3CP%3EDownload%20the%20sample%20root%20CA%20and%20client%20certificate.%3CBR%20%2F%3EUpload%20the%20root%20CA%20to%20Cloud%20App%20Security.%3CBR%20%2F%3EInstall%20the%20client%20certificate%20(password%3DMicrosoft)%20onto%20the%20relevant%20devices.%3CBR%20%2F%3EAfter%20the%20certificates%20are%20uploaded%2C%20you%20can%20create%20access%20and%20session%20policies%20based%20on%20Device%20tag%20and%20Valid%20client%20certificate.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1733067%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20manage%20session%2Fcookies%20for%20custom%20application%20integrated%20in%20Teams%20Desktop%20application%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1733067%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20response.%3C%2FP%3E%3CP%3ECan%20you%20give%20us%20proper%20steps%20or%20some%20document%20link%20for%20the%20same%20to%20implement%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello,
I have created custom application and provided URL in manifest file to call the page in teams.
Each tab has unique url to redirect and when user click tab it goes to site and check session/cookie if it is not there it will ask for login credentials. after login while click second tab I don't have to enter credentials for web version of Teams while in Desktop app if I go to second tab it asks me for credentials to go into the page.
How I can manage session/cookie for desktop Teams app (for my custom application inside).
Please check attachment it may help you to answer the question.
Thanks

3 Replies

To configure a policy to leverage device management via client certificates:

In Cloud App Security, in the menu bar, click the settings cog settings icon and select Settings.

Select the Device identification tab.

Upload as many root or intermediate certificates as you require.

Tip

To test how this works, you can use our sample root CA and client certificate, as follows:

Download the sample root CA and client certificate.
Upload the root CA to Cloud App Security.
Install the client certificate (password=Microsoft) onto the relevant devices.
After the certificates are uploaded, you can create access and session policies based on Device tag and Valid client certificate.

Thanks for response.

Can you give us proper steps or some document link for the same to implement?

@aniketkadwane1600 

You can try with the SameSite cookie, please refer for more info about sametime cookie