5

does anyone know is there a way to implement Windows Live ID authentication into your ASP.NET MVC site. There is some info about OpenID implementations and it uses some libraries. So is there a way to implement Live ID or it is not yet supported.

Thank you

gljivar
  • 440
  • 7
  • 19
  • I'm curious why you'd implement Live ID and not something more flexible (like OpenID)? What is the business logic behind such a decision? – ahockley Dec 16 '08 at 22:44
  • Well the thing is that I want to enable users to use LiveID or OpenID, or nothing. I am not sure is it a good idea but it seems so, or is it possible. And by the way there are 380 million users already using LiveID so I don't think it is a bad business decision. – gljivar Dec 16 '08 at 22:47
  • I didn't mean to say nothing but without them using my own authentication. :). – gljivar Dec 16 '08 at 23:02

3 Answers3

3

The same way you would with Memberships: http://www.eggheadcafe.com/tutorials/aspnet/48857836-0c72-4efb-9d29-fbcb8e17ef3a/integrate-windows-live-id.aspx

Filip Ekberg
  • 36,033
  • 20
  • 126
  • 183
  • Is this still the way to go in .net4, and mvc3? I'm looking for something more up to date. – Maslow Jul 03 '11 at 00:52
  • @Maslow, If you use the ASP.NET MVC 3 Internet Application Template, you will get an Authentication Controller that uses Membership. Have a look at that. You could "change it", to adapt to Windows Live ID. – Filip Ekberg Jul 03 '11 at 09:42
1

Actually this is a valid business case, and I've gotten it to work with asp.net mvc. I used the sdk sample code a posted by Filip and created a controller that handled auth response. The only issue I had was during the windows live app verification process. I couldn't get the verification process to work with the mvc site up. I had to do the verification before I upload site. See: link text

Tyson Swing
  • 191
  • 1
  • 5
0

Newer information at

It's pretty independent of mvc or webforms I think.

Windows Live Messenger Connect Developer Guide http://msdn.microsoft.com/en-us/library/hh243641.aspx

Maslow
  • 18,464
  • 20
  • 106
  • 193