ConnectLoginNoEAS failed with Steam authtoken

Hello,we set OnlineSubsystemSteam as native platform service, call ConnectLoginNoEAS see below warning message. the code already got a authtoken from steam sdk.

how we can verify it?

LogEOSSDK: Warning: LogEOS: Error response received from backend. ServiceName=[EOSAuth], OperationName=[TokenGrant], Url=[<Redacted>], HttpStatus=[401], ErrorCode=[errors.com.epicgames.eos.auth.external.invalid_token], NumericErrorCode=[110013], ErrorMessage=[Invalid session ticket], CorrId=[EOS-N8b5L3SS0E2GWHbb19Z6Sw-mMDRWvNtYEqhOauo0XO5hw]

Steam SDK: 1.61

EOSSDK Version:1.17.0-39599718

​

And I put this authToken to a dedicated program the SteamUser()->BeginAuthSession return the k_EBeginAuthSessionResultOK. That’s mean the token is valid but EOS backend cannot validation it.

The likely cause here is the SteamTokenType setting in your DefaultEngine.ini don’t match the SteamNetworkingIdentity value set in the developer portal. The default is:

[/Script/OnlineSubsystemEOS.EOSSettings]
...
SteamTokenType=WebApi:epiconlineservices
...

If you are only logging into Game Services (not Epic Account Services) this should work with the older Steam API. The error you are seeing is because you are trying to access a private deployment and the Steam account hasn’t been added to a player group that has access to that deployment. You can create a player group and add the account to get passed this issue. You can also do a quick test using the Live sandbox/deployment to confirm it works as these are public.

If you want to backport the changes to use the WebApi token, I can send you a .patch file for 4.27 to get you started.

Are you using UE 4.27 or 4.27+?

Thanks for sharing the version. In FUserManagerEOS::AddLocalUser, add a check to only call EOS_Auth_CopyUserAuhtToken if bUseEAS is true. For example, change the code hereto:

const FEOSSettings Settings = UEOSSettings::GetSettings();
if (Settings.bUseEAS)
{
	// Get auth token info
	EOS_Auth_Token* AuthToken = nullptr;
	EOS_Auth_CopyUserAuthTokenOptions Options = { };
	Options.ApiVersion = EOS_AUTH_COPYUSERAUTHTOKEN_API_LATEST;

	EOS_EResult CopyResult = EOS_Auth_CopyUserAuthToken(EOSSubsystem->AuthHandle, &Options, EpicAccountId, &AuthToken);
	if (CopyResult == EOS_EResult::EOS_Success)
	{
		UserAccountRef->SetAuthAttribute(AUTH_ATTR_ID_TOKEN, AuthToken->AccessToken);
		EOS_Auth_Token_Release(AuthToken);

		UpdateUserInfo(UserAccountRef, EpicAccountId, EpicAccountId);
	}
}

Thanks,

We use unreal engine 4.27, it seems the OnlineSubsystemSteam only get from ISteamUser::GetAuthSessionTicket.

And it’s deprecated in latest unreal engine5.5.

Could we continue use the deprecated session or we must back port the latest WebApi token?

After I set the SteamNetworkingIdentity to empty in developer portal and got below access denied error.

LogEOSSDK: Warning: LogEOS: Error response received from backend. ServiceName=[EOSAuth], OperationName=[TokenGrant], Url=[<Redacted>], HttpStatus=[403], ErrorCode=[errors.com.epicgames.eos.auth.deployment_user_access_forbidden], NumericErrorCode=[110010], ErrorMessage=[DeploymentId: 80dd55f2748e4e45971428fe157b29b3], CorrId=[EOS-lb_n2WCzh02eA8I8bPorPg-yWVrS5h_pEq0xyvUo8LKvQ]

I add the steam account to the group passed the issue.

And met another one error.

LogEOSSDK: Error: LogEOS: EOS_Auth_CopyUserAuthToken - One or more parameters are null

It’s came from EOS_Connect_Login callback .

Do we need resolve it?

			if (Data->ResultCode == EOS_EResult::EOS_Success)
			{
				// We have an account mapping to the platform account, skip to final login
				FullLoginCallback(LocalUserNum, nullptr, Data->LocalUserId);
			}

UE 4.27+

{
	"MajorVersion": 4,
	"MinorVersion": 27,
	"PatchVersion": 2,
	"Changelist": 0,
	"CompatibleChangelist": 17155196,
	"IsLicenseeVersion": 0,
	"IsPromotedBuild": 0,
	"BranchName": "++UE4+Release-4.27"
}