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.