First time here? Feel free to leave a comment or ask a question, and consider subscribing to the latest posts via RSS.

Do you tweet? Follow me at @NicholasMayne.

Get your Orchard site up and running with Microsoft Connect

So you want to install Microsoft connect and have Live Id running on your site. Now you can..

1. Install the latest NGM.OpenAuthentication module in to Orchard.

2. Enable OAuth from the Site Settings section.

3. Pop over to Microsoft and get your client Id and secret key http://msdn.microsoft.com/en-us/library/bb676626.aspx – entered this in to the site sections section, this will be visible after step 2.

4. Let get the connect button into your site.

Load up the Layout.cshtml file.

Enter this in to the file WorkContext.Layout.Footer.Add(New.Parts_LiveId_LogOn(), "15"); // Login

image

 

That's it, load up your site Smile

 

image

 

Click Connect..

image

now sign in, this will redirect you back to your site…

image

Now if you have already connected your account this will sign you in… else enter your details and sign in, this will associate your account to your Live Id account.

If you have no account and you choose to register, then your account will still get assigned to your local account.

1 Comment

Add a Comment