Forum Discussion
Peaverin
Oct 04, 2022Copper Contributor
Storing persistent data associated to Teams user
I am developing a Teams Tab App where the user needs to authenticate using an external API which sends back a token. As the tab is reloaded everytime it is exited and entered again, the user would ne...
Mikel85570
Oct 17, 2022Copper Contributor
Hello,
I have the same problem to store session dependent data e.g. in a cookie. In a MS-Teams APP I get the UserID via a URL parameter. Based on this, it would be possible to store user-dependent data. However, all other calls to the APP unfortunately have no more user-related references, so it is not possible to access stored data. The TeamJS SDK offers the possibility to retrieve the data via getContent() but my question would be how to get this content information into my server side backend code. My webpage is a .CSHTML page with RAZOR. the backend code is provided via the appropriate controller in CS.
Would this way be possible or is there an example where I can see this. I would be grateful for any help.
About SSO I actually did not want to go because I currently do not need resources from MS Azure.
Thanks a lot Mike
I have the same problem to store session dependent data e.g. in a cookie. In a MS-Teams APP I get the UserID via a URL parameter. Based on this, it would be possible to store user-dependent data. However, all other calls to the APP unfortunately have no more user-related references, so it is not possible to access stored data. The TeamJS SDK offers the possibility to retrieve the data via getContent() but my question would be how to get this content information into my server side backend code. My webpage is a .CSHTML page with RAZOR. the backend code is provided via the appropriate controller in CS.
Would this way be possible or is there an example where I can see this. I would be grateful for any help.
About SSO I actually did not want to go because I currently do not need resources from MS Azure.
Thanks a lot Mike
- ChetanSharma-msftDec 05, 2022
Microsoft
Hello Mikel85570, Peaverin - Sorry for delay in response.
Could you please confirm whether your issue has resolved or still looking for any further help here?- Mikel85570Dec 06, 2022Copper ContributorHello ChetanSharma-msft,
I lacked the exact understanding about working with SSO.
helped me hit the following article:
https://techcommunity.microsoft.com/t5/teams-developer/i-need-help-on-best-practice-with-sso-on-a-custom-teams-app-in/m-p/3680821/highlight/true#M6828
Thanks Mike