This website uses cookies. By clicking Accept, you consent to the use of cookies.
Click Here
to learn more about how we use cookies.
Accept
Reject
Browse
VR Forums
Announcements
Get Help
Talk VR
VR Experiences
International
Off-Topic
Developer Forums
Unity Development
Unreal Development
Meta Spatial SDK Development
Android Apps
Web Development
OpenXR Development
General VR & MR Development
PCVR/Link Development
Quest Development
Accessibility Development
Developer Dashboard Feedback
SDK Development
Tool Feedback
Other VR Development
MVPs
Creator Forum
Getting Started
Events & Competitions
Community Resources
Creator Questions & Discussions
What I'm Building
Events Calendar
Help
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Meta Community Forums
Developer
Unreal VR
Oculus integration with EOS and EAS - Login issues...
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
Oculus integration with EOS and EAS - Login issues (missing platform token)
jjwisniewka
Honored Guest
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
11-21-2022
04:30 AM
Hi, I am trying to integrate Oculus with EOS and login using EAS. I have this code for login:
```
IOnlineSubsystem* OnlineSub = Online::GetSubsystem(GetWorld());
if (OnlineSub)
{
APlayerController* const PlayerController = GetFirstLocalPlayerController();
IOnlineIdentityPtr Identity = OnlineSub->GetIdentityInterface();
if (PlayerController && Identity.IsValid())
{
FOnlineAccountCredentials Credentials;
Credentials.Id = FString();
Credentials.Token = FString();
Credentials.Type = FString("accountportal");
ULocalPlayer* LP = Cast<ULocalPlayer>(PlayerController->GetLocalPlayer());
if (LP != NULL)
{
int ControllerId = LP->GetControllerId();
if (Identity->GetLoginStatus(ControllerId) == ELoginStatus::LoggedIn)
{
UE_LOG(LogTemp, Error, TEXT("Login: Already logged in"));
return;
}
}
Identity->OnLoginCompleteDelegates->AddUObject(this, &USWGameInstance::OnLoginCompleteDelegate);
Identity->Login(0, Credentials);
}
}
```
But when I try it on the device I get message:
> 15:16:10.371 19724 19760 D UE4 : [2022.11.18-14.16.10:371][ 0]LogTemp: Error: Login: Start
15:16:10.371 19724 19760 D UE4 : [2022.11.18-14.16.10:371][ 0]LogTemp: Error: Login: Subsystem Found
15:16:10.371 19724 19760 D UE4 : [2022.11.18-14.16.10:371][ 0]LogTemp: Error: Login: Identity Found
15:16:10.371 19724 19760 D UE4 : [2022.11.18-14.16.10:371][ 0]LogTemp: Error: Login: Player Found
15:16:10.371 19724 19760 D UE4 : [2022.11.18-14.16.10:371][ 0]LogOnline: Warning: OSS: Unable to Login() user (0) due to an empty platform auth token
15:16:10.371 19724 19760 D UE4 : [2022.11.18-14.16.10:371][ 0]LogTemp: Error: Failed to login: Missing platform auth token
Is it something wrong with configuration in developer portal? Or should I pass some other values during login?
This is my AndroidEngine.ini
```
[EpicOnlineServices]
DelegatedSubsystems=Oculus
AuthenticationGraph=Oculus
[/Script/OnlineSubsystemOculus.OculusNetDriver]
NetConnectionClassName="OnlineSubsystemOculus.OculusNetConnection"
[/Script/OnlineSubsystemOculus.OculusNetDriver]
ServerTravelPause=4.0
[OnlineSubsystem]
DefaultPlatformService=EOSPlus
NativePlatformService=Oculus
bHasVoiceEnable=true
```
And my DefaultEngine.ini
```
[OnlineSubsystemEOS]
bEnabled=true
[OnlineSubsystemEOSPlus]
bEnabled=true
[/Script/OnlineSubsystemUtils.OnlineEngineInterfaceImpl]
+CompatibleUniqueNetIdTypes=EOS
+CompatibleUniqueNetIdTypes=EOSPlus
[OnlineSubsystemOculus]
bEnabled=true
OculusAppId=?????
[OnlineSubsystem]
DefaultPlatformService=EOSPlus
bHasVoiceEnable=true
[/Script/Engine.GameEngine]
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemEOS.NetDriverEOS",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
[/Script/OnlineSubsystemEOS.NetDriverEOS]
bIsUsingP2PSockets=true
[/Script/OnlineSubsystemEOS.EOSSettings]
CacheDir=/sdcard
DefaultArtifactName=SnowWarsVR
TickBudgetInMilliseconds=0
bEnableOverlay=True
bEnableSocialOverlay=True
bShouldEnforceBeingLaunchedByEGS=False
TitleStorageReadChunkLength=0
+Artifacts=(ArtifactName="SnowWarsVR",ClientId="?????",ClientSecret="?????",ProductId="?????",SandboxId="?????",DeploymentId="?????",EncryptionKey="?????")
bUseEAS=True
bUseEOSConnect=False
bMirrorStatsToEOS=False
bMirrorAchievementsToEOS=False
bUseEOSSessions=False
bMirrorPresenceToEAS=False
```
Labels:
Labels:
UE4 EOS Multiplayer Networking
All forum topics
Previous Topic
Next Topic
0 REPLIES
0
Post Reply
Related Content
Oculus Core SDK v76 Bug - Compiler errors with Web(GL) target active
in
Unity Development
a week ago
[RESOLVED] Uploading build to store fails with server errors
in
Other VR Development
2 weeks ago
Feedback Wanted: Would Oculus Quest Devs Benefit from an “Essential Kit” Unity Plugin?
in
Unity Development
2 weeks ago
Build Error when using Meta XR Plugin (Version 74.1) with Unreal Engine 5.5.4 - Platform WINDOWS
in
Unreal Development
04-10-2025
Screen frozen in place, MemoryBrokerClient failed to remap HEAD_TRACKER when testing Unity build
in
Unity Development
03-17-2025