janeman553246


Hello!

Im developing an application and would like to have the same capability as Messenger where you can click on a button and it logs you into hotmail automatically via your browser. Is this possible to do using the Windows live id SDK

Thanks



Re: Windows Live Id and Browser Mail

Scott


You should be able to, you use the Identity.OpenAuthenticatedBrowser Method, and use "http://mail.live.com/" as the serviceUrl string.





Re: Windows Live Id and Browser Mail

CraigPhillips

I'm wondering if anyone got the OpenAuthenticatedBrowser(...) method working

I've got a small chunk of code that creates the identity and authenticates:
IdentityManager identityMgr = IdentityManager.CreateInstance( AppID, AppName );
_identity = identityMgr.CreateIdentity();
_identity.Authenticate();

This goes through all right (if I call _identity.IsAuthenticated(), it returns true). However, when I call:
_identity.OpenAuthenticatedBrowser( "http://mail.live.com", "lbi" );

, it doesn't function correctly. Instead of being signed into the site, I'm sent to https://login.live.com/ppsecure/sha1auth.srf lc=1033 which claims that I entered an incorrect password. Of course, if I repeat the password that I just typed into the authentication box a moment ago into the new browser window, I'm logged in correctly.

Does anyone have this working Is there something I'm doing incorrectly or missing Is there a specific AppID/AppName I should be using I know that with the Windows Live Search AppIDs, you have to have one created, but I don't see anything similiar for Windows Live ID. What about the second argument passed to the OpenAuthenticateBrowser method Is there a specific policy I should be using

Any help is appreciated.







Re: Windows Live Id and Browser Mail

Sarah Faulkner -- MSFT

Hi Craig,

If you reference the SDK documentation, you'll see that OpenAuthenticatedBrowser calls for 3 parameters. You will need to include a boolean (set it to true) as your third parameter in your call above.

Also, you have an incorrect value for your policy (second parameter). I'll teach you how to discover the policy for different Windows Live sites. If you go to mail.live.com, you are redirected to the Windows Live ID login page. Here's the url I get for the Windows Live ID login page after web mail redirects me: http://login.live.com/login.srf wa=wsignin1.0&rpsnv=10&ct=1178737380&rver=4.0.1532.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855

To get the policy for a specific site, look at the wp= in the query string. In this case, wp=MBI. Therefore, your call to open the authenticated browsers should be:

_identity.OpenAuthenticatedBrowser("http://mail.live.com", "MBI", true);

Good Luck!!

Sarah, Program Manager -- Windows Live ID






Re: Windows Live Id and Browser Mail

CraigPhillips

Thanks! Got it working now.

Craig





Re: Windows Live Id and Browser Mail

raidmaster212

hey man i have a problem kind of the same ... i dont know anything about programming but my problem is /// when i sign into windowslive messenger ,,, the popup on bottom right that says i have new emails comes up like normal /// but .. when i click it ... it takes me to https://login.live.com/ppsecure/sha1auth.srf lc=1033 ... it takes me to the same page if i click on the email link at the top... next to my Display picture and name ... so yeh thats problem... how do i get it to take me to normal hotmail site ... it hasnt been like this b4 just started like cuple days ago ... um yeh and when it directs me to that page the windows notice comes up " this page has secure and non-secure items to be displayed ... wuld u like to display nonsecure items" or sumthin .. if i click no .. its just a blank page and says "done " at the bottom.. and if i click yes then on the page appears a "download" link ... a " hot domain link" and a google search bar ... so yeh pls help me how i fix this problem and make it so that i click email link thru windows live messenger and it directs me straight to hotmail.com




Re: Windows Live Id and Browser Mail

Alex Media

I'm not sure, but I think your computer has been infected with something that tries to abuse the Windows Live ID-service URL's... Windows Live ID will never present you with toolbars or Google search bars, it's just an authentication service (and a large one, too Wink)

Try running a virusscan and a spywarescan, and check your %systemroot%\system32\drivers\etc\HOSTS-file, if it contains entries regarding "login.live.com"





Re: Windows Live Id and Browser Mail

raidmaster212


um im like really new at this ... i ran a virus scan .. kaspersky 7 but wat u mean check ur %systemroot%\system32\drivers\etc\HOSTS-file

please can u gimme a step by step method of how to get rid of that annoying thing...
check this out thats wat comes up when i click on the popup for (#) of new emails .. or even if i click the check email tab at the top beside change colour .. change background,, mobile and all that stuff




Re: Windows Live Id and Browser Mail

Alex Media

Ok, this isn't good, this is some malware doing it's thing...

Start Notepad as administrator (right click, "Run as Administrator") and open the file %systemroot%\system32\drivers\etc\HOSTS. Just type in that path.

The contents of my HOSTS-file follows:

Code Block

# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
::1 localhost


Does yours look like this If it doesn't, please make a back-up of it and replace it with the contents above.

O, and it might be a good idea to change your password after you're sure that everything is cleaned up. Just in case. By the way, can you get to http://account.live.com





Re: Windows Live Id and Browser Mail

raidmaster212

problem ... i havent created an administrator account ... as in when i click "run as..." and then select admin from the pulldown menu .. i dont know wat password to put in... there is only one account on this comp ... um ... and so i just opened %systemroot%\system32\drivers\etc\HOSTS normally and checked the differences .these are the ones i found :


- mine says 1993 - 1999 urs says 1993 - 2006 is there any difference
- mine ends with
127.0.0.1 localhost urs ends with ::1 localhost // do i have to add that line in


u know how u said to save a backup... if i save it to HOST it says i gotta be admin ... so wat i do ... cos i dun have the password for admin



and wat u mean can i get into http://account.live.com ... if u mean can i click on the link and be directed to windows live website ... then yes... but still if i click the popup u have (#) new emails ... then no it still takes me to that thing with "download , hot domain , |_____________| google search"





Re: Windows Live Id and Browser Mail

Alex Media

Mine is based on Windows Vista, you're probably running Windows XP. I don't know what might cause it, can't you ask a friend or someone to take a look at it They'll probably have better ways of figuring out what causes it than we do now Wink