Giter Site home page Giter Site logo

igeligel / skadisteam.login Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 3.0 91 KB

:snowflake: A package to login into steamcommunity.com via a .net core wrapper. This will not need an api key because it is using the methods which steam is providing via the web.

Home Page: https://steamcommunity.com/login/home/?goto=0

License: MIT License

C# 98.50% PowerShell 1.50%
steam steam-community wrapper steam-api steambot

skadisteam.login's Issues

SteamId Parse

In SkadiLoginResponseFactory the id is required to be a long. If the id is a custom url we should rather get the SteamID out of a cookie rather than doing one extra request then.

Session normalization

Should we explicitly set the default language to english?

session.Cookies.Add(new Cookie("Steam_Language", "english"));

Does Steam remember languages on a per-user basis or based on IP location?

Password Encryption on Linux

Password Encryption is not working on Linux.
Checkout EncryptPasswordFactory to resolve this issue.

When running the tests i get this error:

System.PlatformNotSupportedException

Stacktrace:

Stack Trace:
           at System.Security.Cryptography.RSACryptoServiceProvider..ctor()
        /home/kevin/programming/github/skadisteam.login/src/skadisteam.login/Factories/EncryptPasswordFactory.cs(23,0): at skadisteam.login.Factories.EncryptPasswordFactory.EncryptPassword(EncryptPasswordModel encryptPasswordModel)
        /home/kevin/programming/github/skadisteam.login/src/skadisteam.login/Factories/EncryptPasswordFactory.cs(18,0): at skadisteam.login.Factories.EncryptPasswordFactory.Create(GetRsaKeyResponse getRsaKeyResponse, String password)
        /home/kevin/programming/github/skadisteam.login/src/skadisteam.login.test/Factories/EncryptPasswordTest.cs(29,0): at skadisteam.login.test.Factories.EncryptPasswordTest.Length()

Other stacktrace:

skadisteam.login.test.Factories.EncryptPasswordTest.Format [FAIL]
      System.PlatformNotSupportedException : Operation is not supported on this platform.
      Stack Trace:
           at System.Security.Cryptography.RSACryptoServiceProvider..ctor()
        /home/kevin/programming/github/skadisteam.login/src/skadisteam.login/Factories/EncryptPasswordFactory.cs(23,0): at skadisteam.login.Factories.EncryptPasswordFactory.EncryptPassword(EncryptPasswordModel encryptPasswordModel)
        /home/kevin/programming/github/skadisteam.login/src/skadisteam.login/Factories/EncryptPasswordFactory.cs(18,0): at skadisteam.login.Factories.EncryptPasswordFactory.Create(GetRsaKeyResponse getRsaKeyResponse, String password)
        /home/kevin/programming/github/skadisteam.login/src/skadisteam.login.test/Factories/EncryptPasswordTest.cs(17,0): at skadisteam.login.test.Factories.EncryptPasswordTest.Format()
  Finished:    skadisteam.login.test

Possible solution described here:

Test System:

  • Ubuntu 16.04
  • .netcore 1.1.0
  • netstandard 1.6

Steam Two Factor Code

Check if the Code is transmitted in lowercase/uppercase in requests. Probably some steam related error.

Refactor DoLoginResponseValidator

Code could be easily refactored in this method to a single return statement. Example can be found here.

if (doLoginResponse.Success && doLoginResponse.LoginComplete)
{
    return true;
}
return false;

Can be resolved to:

return (doLoginResponse.Success && doLoginResponse.LoginComplete);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.