Skip to main content

Set up Steam login method - Login with Steam - (Unreal Engine module)

Last updated on June 12, 2024

Set up Steam login method in the AGS Admin Portal

In this tutorial, you will learn how to enable 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. On the sidebar menu, select Game Setup > 3rd Party Configuration > Auth & Account Linking. Click the Add New button at the top right of the page.

  3. Choose Steam SDK and fill in the required fields:

    • 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. After applying the changes, you will see Steam SDK in the list of login methods. Ensure that its Status is set to Active.

Configure Steam OSS

To use Steam as single platform authentication, you need to configure Steam Online Subsystem (OSS) in the project.

  1. Open the AccelByteWars.uproject file and ensure that the OnlineSubsystemSteam plugin is enabled:

    {
    ...
    "Plugins": [
    ...
    {
    "Name": "OnlineSubsystemSteam",
    "Enabled": true
    }
    ]
    }
  2. Head to the /Config/DefaultEngine.ini file and look for the [OnlineSubsystemSteam] section. Ensure that the bEnabled flag is set to true and the SteamDevAppId is set to your Steam App ID:

    [OnlineSubsystemSteam]
    bEnabled=true
    SteamDevAppId="<replace-with-your-Steam-App-ID>"
    bUseSteamNetworking=false
  3. Set the value of NativePlatformService as Steam under the [OnlineSubsystem] section in the /Config/DefaultEngine.ini file:

    [OnlineSubsystem]
    NativePlatformService=Steam
  4. Build and open the project in Unreal Editor.

Important

Steam OSS is not available in PIE (Play In Editor) mode. You need to run the game in Standalone Game mode to test the Steam login method.

  1. To test the Steam login method, ensure that Steam is running and you are logged in. Then, select Standalone Game from the Play dropdown menu in Unreal Editor.

    Play game in standalone mode unreal engine steam

  2. When the game starts, you will see the Steam notification appear at the bottom right of the screen. This indicates that you have successfully configured the Steam login method.

    Logged in with steam unreal engine login