How do I log in through my Microsoft Live app?

Asked

Viewed 457 times

8

I would like to know how I can log in through my application, whether Web or Desktop, on Live?

I’ve looked for some things, but I haven’t succeeded.

UPDATING

So, as the bfavaretto suggested, I downloaded a sample from microsoft, however, still this way, it has an iframe that calls "live.com", and that’s not the point, I would like to do it in Server Side for my server to make that call.

Follow the Microsoft code:

<h1>Welcome to the C# Sample for the Windows Live&trade; ID Web
Authentication SDK</h1>

<p>The text of the link below indicates whether you are signed in
or not. If the link invites you to <b>Sign in</b>, you are not
signed in yet. If it says <b>Sign out</b>, you are already signed
in.</p>

<iframe 
id="WebAuthControl" 
name="WebAuthControl"
src="http://login.live.com/controls/WebAuth.htm?appid=<%=AppId%>&style=font-size%3A+10pt%3B+font-family%3A+verdana%3B+background%3A+white%3B"
width="80px"
height="20px"
marginwidth="0"
marginheight="0"
align="middle"
frameborder="0"
scrolling="no">
</iframe>

Any other suggestion ?

  • "I’ve looked for some things, but I haven’t succeeded." What did you find? Why didn’t you succeed?

  • 1

    Have you seen this link? http://msdn.microsoft.com/en-us/library/bb404787.aspx

  • @Talles, all I found was that I could not login, with user and password, through my application, just calling the Live page, however, at some point and place, I found something similar to this and had login for Lie, only that I could never find again.

  • @bfavaretto, already yes, but has no practical examples.

  • @Betasystems-Rodrigoduarte, [here](http://msdn.microsoft.com/library/bb676641.aspx "Using Web Authentication") has a step by step explanation and snippets. Tried to follow?

  • So, this page teaches only the redirection and customization of the Sign-in page... No external login.

  • 1
Show 2 more comments

2 answers

8


Unable to login to Microsoft API using user and password.

This practice has not been used for years, since it involves serious safety risks for the user. Instead, they implement Oauth as a form of authentication.

In Oauth the user authenticates on the site, in this example on the Microsoft page, and then is redirected to your site with a code (Authorization code) which is used to obtain the access_token, which in this case is used in the api calls.

I found link in the documentation which explains the process for desktop applications, there teaches how to do. It is worth remembering that for both desktop and web applications the process is the same; the difference is that for desktop you will use the object WebBrowser to obtain the Authorization code.

3

  • Marcos, thanks for the answers, but actually, my goal was just with C#, so I can leverage the code for other desktop applications.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.