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.

Advertisements

Author: Nishant Rana

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

Please 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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.