Skip to main content

Set up Steam login method - Login with Steam - (Unity module)

Last updated on June 11, 2024

Set up Steam login method in the Admin Portal

In this tutorial, you will learn how to add a Steam login method in the AccelByte Gaming Services (AGS) Admin Portal.

  1. Log in to the AGS Admin Portal and go to your game namespace dashboard.

  2. Go to select Game Setup > 3rd Party Configuration > Auth & Account Linking and click Add New.

  3. Click Steam SDK and fill out the form that appears:

    • App ID: Your game's App ID from the Steam partner dashboard (see Applications from Steam).
    • Steam Web API Key: The Web API Key acquired from Steam (see Steam Web API Documentation).
    • Redirect URI: Enter http://127.0.0.1
  4. When redirected to the Login Platform Configuration page, verify its Status is Active. If it's not, activate it by clicking Activate once, and again on the pop-up to confirm.

Configure Steam

To use Steam for single platform authentication, Steamworks.NET has been installed and adjusted for this tutorial.

  1. Open the Assets/Resources/Modules/TutorialModuleConfig.json file and enter in your Steam App ID.

    "steamConfiguration":
    {
    "steamAppId": "<Your Steam App ID>",
    "autoLogin": true
    }
  2. With Steam open on your computer, play the game. If Steamworks has been configured successfully, you will see the following log:

  3. After that, enter play mode in Unity Editor. You should see this log.

    [Steamworks.NET] SteamAPI_Init() success