Thursday, October 27, 2016

How to enable Multi-Tenant Authentication for PHA hosted in Azure?

If the applications is used across multiple tenants by partners across different companies , This could be the best way  to achieve it.This activity involves following tasks

1)Create Provider hosted App and Publish it to Azure Web App.
2)Configure Multi-Tenancy  for this Azure Web App

Tuesday, October 11, 2016

Console App to Login to Office 365

1) In Visual Studio,Create the Console app as follows

using (var context = new ClientContext("https://<Your Office 365 site>.sharepoint.com"))
    var password = new SecureString();
    foreach (var c in "<ur Office 365 Pwd")

    context.Credentials = new SharePointOnlineCredentials("login@sp.onmicrosoft.com", password);

    var web = clientContext.Web;

2)Make sure that you are referring correct SharePoint Client SDK dlls with respect to SharePoint Online.