Connecting to SharePoint Online in Office 365 through a windows or console application

Hi,

Was looking for a way to connect to SharePoint online using CSOM through a windows application. Found this wonderful article that explains in details about the same.

http://www.wictorwilen.se/Post/How-to-do-active-authentication-to-Office-365-and-SharePoint-Online.aspx

It also provides us with a helper class name MsOnlineClaimsHelper that does all the heavy lifting for us.

MsOnlineClaimsHelper claimsHelper = new MsOnlineClaimsHelper(https://xyz.com/sites/dev”, “x@y.onmicrosoft.com”,“pwd”);

Hope it helps.


Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s