How do we get EOS to login a Steam player using their Steam auth token?

Hi all,

We’re working on an Unreal Engine based multiplayer game where we want to use EOS for creating/joining multiplayer sessions. We would like to have Steam players to be able to join in as well, without them having to create a new account.

From what we can see from the EOS documentation it should be possible to do this using EOS Plus and use Steam as an Identity Provider, and we have gotten quite far in the integration process. But right now we are stuck when it attempts to login using the players Steam auth token. The error we get is the following:

[2025.02.07-08.29.12:834][554]LogEOSSDK: Warning: LogEOS: Error response received from backend. ServiceName=[OAuth], OperationName=[TokenGrantv2], Url=[<Redacted>], HttpStatus=[400], ErrorCode=[errors.com.epicgames.account.ext_auth.invalid_external_auth_token], NumericErrorCode=[18035], ErrorMessage=[Sorry, the external token you provided for the the auth system steam_session_ticket could not be validated], CorrId=[EOS-1Wz7y4_5nUaj3pvjR2lflA-fi4iu_CsWkiiv9JmwzNsXg]

According to the EOS documentation it should be possible to use EOS on Steam, without Steam players have to create an EOS account.

Here’s some additional information about the setup and what we’ve done already:

Unreal Engine version 5.4.4

EOS subsystem and Steam subsystem are both included using Plugins

Integration is done using C++

Game is packaged for Windows

Key parts of DefaultEngine.ini looks like this:

[/Script/Engine.GameEngine]

+NetDriverDefinitions=(DefName=“GameNetDriver”,DriverClassName=“OnlineSubsystemEOS.NetDriverEOS”,DriverClassNameFallback=“OnlineSubsystemUtils.IpNetDriver”)

[OnlineSubsystem]

DefaultPlatformService=EOSPlus

NativePlatformService=Steam

[OnlineSubsystemSteam]

bEnabled=true

SteamDevAppId=###

bInitServerOnClient=true

bUseSteamNetworking=false

[OnlineSubsystemEOS]

bEnabled=true

[OnlineSubsystemEOSPlus]

bEnabled=true

[/Script/OnlineSubsystemSteam.SteamNetDriver]

NetConnectionClassName=“OnlineSubsystemSteam.SteamNetConnection”

[/Script/OnlineSubsystemEOS.NetDriverEOS]

bIsUsingP2PSockets=true

[/Script/OnlineSubsystemUtils.OnlineEngineInterfaceImpl]

+CompatibleUniqueNetIdTypes=EOS

+CompatibleUniqueNetIdTypes=EOSPlus

[/Script/OnlineSubsystemEOS.EOSSettings]

CacheDir=CacheDir

DefaultArtifactName=TestingClient

RTCBackgroundMode=

TickBudgetInMilliseconds=0

bEnableOverlay=True

bEnableSocialOverlay=False

bEnableEditorOverlay=False

bPreferPersistentAuth=False

TitleStorageReadChunkLength=0

+Artifacts=(ArtifactName=“TestingClient”,ClientId=“###”,ClientSecret=“###”,ProductId=“###”,SandboxId=“###”,DeploymentId=“###”,ClientEncryptionKey=“”)

-AuthScopeFlags=BasicProfile

-AuthScopeFlags=FriendsList

-AuthScopeFlags=Presence

+AuthScopeFlags=BasicProfile

bUseEAS=True

bUseEOSConnect=True

bMirrorStatsToEOS=False

bMirrorAchievementsToEOS=False

bUseEOSSessions=True

bMirrorPresenceToEAS=False

SteamTokenType=Session

In the EOS Developer Portal we have already done the following:

1: Client policy has been added, it enables all actions under “Matchmaking” and the property “User required” is set to false

2: Client has been added that uses above Client policy

3: Steam has been added as Identity Provider and Encryption Key has been copied from our Steamworks portal

When it comes to logging in, we have tried several things, but nothing seems to work. Currently we attempt to do it like this:

if (IOnlineIdentityPtr Identity = Subsystem->GetIdentityInterface())

{

FOnlineAccountCredentials Credentials;

Credentials.Id = FString();

Credentials.Token = SteamToken; // GetAuthToken from IdentityInterface

Credentials.Type = FString(“externalauth”);

Identity->Login(0, Credentials);

}

Any ideas of what to try next, in order to get Steam authentication to work?

Thank you very much in advance for all your help.

Hello, if you do not want to require an Epic account for login (note that an Epic Account Services account is different from an Epic Online Services Product User), then you will want to set bUseEAS to False in your configuration.

The current setting causes the plugin to attempt to log the user into an Epic account using the Steam token.

Please also see the additional details implementation and configuration details for EOS_ECT_STEAM_SESSION_TICKET in the docs, here:

https://dev.epicgames.com/docs/api-ref/enums/eos-e-external-credential-type

Please also note that EOSPlus is deprecated in Unreal Engine 5.5. For more information on this change, please read the following article:

https://dev.epicgames.com/community/learning/knowledge-base/OP6YG/epic-online-services-eosplus-is-deprecated-in-ue5-5