2

Closed

Can't login to all LiveId's

description

I could specifically not login with 2 different @msn.com usernames.
I have a live account ending with @gmail.com also, this works fine

file attachments

Closed Jan 19, 2011 at 4:23 AM by ChrisGuzak

comments

kenand wrote Jan 1, 2011 at 7:00 PM

By looking through the code in the SkyDriveSimpleLibrary i found out that the reason is that the login server sends an redirect to another loginserver.

PassPortConnection.cs
private string GetPassportToken(string loginUrl)
there is a codeline:
if (status!="success") throw new PassportException(PassportException.Reason.Authentication, "Authentication did not succeed in GetPassportToken: " + status);

In this case the status == "redir"
and the response header "Location" contains the redirect url.

By handling this redirect i could login.
New code:
if (status == "redir")
    {
        String redir = resp.Headers["Location"];
        string redirToken = GetPassportToken(redir);
        return redirToken;
    } 
    if (status!="success")
        throw new PassportException(PassportException.Reason.Authentication, "Authentication did not succeed in GetPassportToken: " + status);

ChrisGuzak wrote Jan 3, 2011 at 5:33 PM

I came to the same conclusion (before reading your post), this enables logging in to @msn.com addresses

wrote Jan 3, 2011 at 5:45 PM

wrote Jan 19, 2011 at 4:23 AM

Resolved with changeset 54998.

wrote Feb 21, 2013 at 11:09 PM

wrote May 16, 2013 at 10:30 AM