Overv / SteamWebAPI

Library for C# giving access to the functionality of the Steam Web API.
MIT License
173 stars 50 forks source link

Can't login to steam #10

Open einsteinsci opened 9 years ago

einsteinsci commented 9 years ago

Not sure if this is because steam changed how logins work or because steam's login is down, but I'm getting a WebException: Could not find remote server during SteamAPISession.Authenticate().

Here's the relevant part of the code:

SteamAPISession session = new SteamAPISession
// ...
Console.WriteLine("Logging in...");
LoginStatus logStatus = LoginStatus.LoginFailed;
try
{
    logStatus = session.Authenticate(username, password);
}
catch (Exception e)
{
    Console.WriteLine("Could not log in: " + e.Message);
    Console.ReadKey();
    return;
}

Is this a problem with my code or with the API?

Overv commented 9 years ago

It's not you. The IP of the API server has changed, which was hardcoded for some reason. However, the login still fails.

I just decompiled the Steam APK and it looks like the login protocol has changed quite a bit. The ISteamOAuth2/GetTokenWithCredentials/v0001 endpoint no longer exists. I may have time to rework the login code somewhere at the end of this week.

JaySlex commented 3 years ago

same error, really need it