Wednesday, March 12, 2008

Windows Live Authentication in MOSS 2007 - Configuration and Integration Live Authentication in SharePoint 2007

Windows Live Authentication in MOSS 2007 - Configuration and Integration Live Authentication in SharePoint 2007

Windows Live Authentication 1.0 which is available in CodePlex. Download and install the .wsp file to SharePoint server 2007. Download Link
While installing these are the three main initial steps to follow.
Step1:

Step2:

Step3:

These three steps as to success, then only the installation completes.
Next is live ID registration in https://msm.live.com/app/default.aspx

Now the registration page appears.

After click submit, you will redirect to a page displaying the important information to be noted.
Now click on the manage the application to do the maintain the application.
Next the important configuration using the command window.


Finally you need to add the defaultProvider for the Web Application that will authenticate Live ID users, you will replace the following in the web.config for the Web Application: with You can find an example portion of the complete web.config herePerform an IISRESET and you are done

Finally the configuration file changes for your web application

Now when you try to login to your site using Windows Live ID, you may face this error "Operation is not valid due to the current state of the object. "
To solve this first try this operation
stsadm -o upgrade -inplace
If not solved, try out this option Try installing the Service Pack for SharePoint Click Here
When i logged in using my Windows Live ID it says that
Error: Access Denied
Current User
You are currently signed in as: ac592e0e0b189909163bccfeff41cace
This means the feature WindowsLiveAuthenticationSettings is not actived in your site, we need to active this feature. Lets see how.

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\WindowsLiveAuthenticationSettings
After activating the feature using stsadm.exe (for more ref:)
After activated

Other reference:

4 comments:

Unknown said...

Hi,

This is an informative post :-)

Can you tell me how to get to the screen where you see a list of features active/inactive ?

I followed the steps in this post but I am still facing the issue : "Error : Access Denied, you are currently signed in XXXX"

Bearry said...

Hi,
I like you post !.
It seems you used 64bit machine. I had no problems with WLID on 32 bit.Everything works fine. However, on both Win2003 and Win2008 64bit machines Sharepoint site (MOSS and WSS)returns "Unknown error"
Have you seen such error? I suspect it might be .NET problem. Any help where to dig will be greatly appreciated.
Thanks,
Bearry

Keviv said...

Disable custom error and check the exact error message.
http://vivekthangaswamy.blogspot.com/2007/04/disable-custom-error-message-in.html

It will help you to find th exact problem.

Bearry said...

Vivek,
Thanks for prompt responce. Here is the error:
"Object reference not set to an instance of an object. at CKS.WindowsLiveAuthentication.liveauthhandler.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

ASP.NET MVC - Sport Facility Booking system

  The project relies on some external service providers. Thus accessing them via their API requires authentication. An API Key need to be su...