Monday, February 26, 2007

Microsoft Office Live

Last week, I worked on Office Live from a server perspective. Office Live is a hosted solution from Microsoft for web sites and business management information like Sales leads, Time sheets, expenses, etc.

My company wanted to be able to programmatically add a new sales lead using the web services provided since Office Live is actually based on Microsoft SharePoint 3.0 that should be possible but alas as of Feb 23, 2007 the Live ID authentication is not supported on OfficeLive. After downloading the Live ID SDK, I was able to authenticate to Live ID but I wasnt' able to consume any of the services from Office Live.

Here's a little snippet that should be possible:
IdentityManager oIDMgr = IdentityManager.CreateInstance("Tailspin Toys;dan@tailspintoys.com;Tailspin Toys Application", "Windows Live ID Client Sample");
Identity oID=oIDMgr.CreateIdentity();
Discovery discoverySvc= new Discovery();

LiveIDSettings settings = discoverySvc.GetLiveIDSettings();
string ticket = identity.GetTicket(settings.SiteName, settings.Policy, false);
authModule = new WindowsLiveAuthenticationModule(ticket);
AuthenticationManager.Register(authModule);
string[] subscriptionIDs = discoverySvc.GetSubscriptions();

Tell me about your experiences...

1 comment:

Kevin Driedger said...

Here's a blog post that also points the direction:
http://blogs.msdn.com/ihimmar/archive/2005/06/07/426561.aspx