Login to Office 365 from External ASP.NET Application RRS feed

  • Question

  • Hi,

    I want to login to Office 365 from External ASP.NET Application.

    We have an Employee portal built on ASP.NET. Now we are going to implements Office 365 and Dynamics 365 but we don't want to leave our Employee Portal. We want to have a link/button on Employee portal for Office 365. User will click the link and will be redirected to Office 365 where he should not have to login and he will be logged in to his Office 365 account seamlessly. 

    Please provide any sample code or help through which we can achieve this functionality. 


    Faisal Zia

    Tuesday, January 31, 2017 5:57 AM

All replies

  • Hi,

    You have to configure the site to use the custom domain as exactly as your on premise .

    All user account should be synchronized in Azure AD and all user must have the subscription,licensed and permission to access the SharePoint online.

    If both conditions are met, then you can simply add the link to your application and then add your office365 site to trusted site list in IE.

    Murugesa Pandian | MCPD | MCTS | SharePoint 2010 |

    Tuesday, January 31, 2017 10:19 AM