Forum Discussion
Authenticate a user in MS teams custom app using asp.net and c#
Hi gk_vasudev ,
Thank you so much for your reply.
Is it possible that user is logged in to MS teams already so it can auto login to custom app pages using same credentials?
As per your answer, user has to login by his Office 365 credentials again in the app.
Thanks,
Rajesh Lohar You can implement SSO for tab. SSO picks up the credentials of the user from teams login and the user does not have to enter the credentials again. Here is the docs for SSO and the sample. But, currently we do not have a complete sample in C#. But since this is just a web page you can still use it in your C# solution.
- Rajesh LoharJul 16, 2020Copper Contributor
Thank you Gousia_Begum .
Please let me know if you have complete sample in c#. The information shared by you is really useful.
Thanks
- Gousia_BegumJul 16, 2020Microsoft
Rajesh Lohar Unfortunately, we do not have a complete sample for SSO in C#. But you can use the code from the NodeJS sample in your app's web page.