How do I sign in through my application on Microsoft Live?

7

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

I've been looking for a few things, but I have not been successful.

UPDATE

So, as bfavaretto suggested, I downloaded a sample from microsoft, but even so, it has an iFrame that calls "live.com", and that's not the intention, I'd like to do it in Server Side for my server to make this 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 suggestions?

    
asked by anonymous 13.01.2014 / 19:21

2 answers

7

Unable to login to the Microsoft API using username and password .

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

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

I found link in documentation that explains the process for desktop applications, there teaches the how to make. 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 access_token object to obtain the authorization code .

    
14.01.2014 / 21:21
3

I believe the official name is Identity API .

Microsoft makes available a Javascript library, but there are other ways to connect. In the end, it all comes down to REST operations.

In your case, you would start by using the WL.login function.

You can also use C #, in which case you start by adding using Microsoft.Live . The Introduction Page shows several examples with C #.

More information about the API can be found at link .

    
14.01.2014 / 02:08