Skip to content

The library allows you to connect Guard to user account Steam

License

Notifications You must be signed in to change notification settings

AN0NCER/steam-lib

Repository files navigation

Release Release Nuget Downloads

Steam Authenticator

The library allows you to connect Steam Guard to your account, with the ability to have Steam Guard on multiple devices at the same time.

Support for:

  • NET Standart
  • NET Core
  • NET Framework

Functionality

Currently, this library can WIKI:

  • Generate login codes for a given Shared Secret
  • Login to a user account
  • Link and activate a new mobile authenticator to a user account after logging in
  • Remove itself from an account
  • Fetch, accept, and deny mobile confirmations

Requirements

Usage

To generate login codes if you already have a Shared Secret, simply instantiate a SteamGuardAccount and set its SharedSecret. Then call SteamGuardAccount.GenerateSteamGuardCode().

To add a mobile authenticator to a user, instantiate a UserLogin instance which will allow you to login to the account. After logging in, instantiate an AuthenticatorLinker and use AuthenticatorLinker.AddAuthenticator() and AuthenticatorLinker.FinalizeAddAuthenticator() to link a new authenticator. After calling AddAuthenticator(), and before calling FinalizeAddAuthenticator(), please save a JSON string of the AuthenticatorLinker.LinkedAccount. This will contain everything you need to generate subsequent codes. Failing to do this will lock you out of your account.

To fetch mobile confirmations, call SteamGuardAccount.FetchConfirmations(). You can then call SteamGuardAccount.AcceptConfirmation and SteamGuardAccount.DenyConfirmation.

More information in My WIKI