Player Name not set when using custom authentication

Hi,

The player name is not returned when I use custom authentication, when I do not it is returned correctly?

UE4, self hosted.
void UDTClient::ConnectToServer() {
	Logging::get().logToOutput("Connecting...");

	ExitGames::Common::JString jUser  = *username;
	ExitGames::Common::JString jPass  = *password;
	ExitGames::Common::JString params = "username=" + jUser + "&token=" + jPass;

	ExitGames::LoadBalancing::AuthenticationValues authValues;
	authValues.setType(ExitGames::LoadBalancing::CustomAuthenticationType::CUSTOM);
	authValues.setParameters(params);
	mpDTClient->setAutoJoinLobby(false);
	mpDTClient->connect(authValues, ExitGames::Common::JString(L"TESTUSERNAME"), *serverAddress, ExitGames::LoadBalancing::ServerType::MASTER_SERVER);
}
void DTListener::joinRoomEventAction(int playerNr, const JVector<int>& playernrs, const Player& player)
{
	Logging::get().logToOutput(JString("Player ") + playerNr + L" " + player.getName() + L" has joined the game");
	mpView->addPlayer(playerNr, player.getName(), player.getNumber() == mpDTc->getLocalPlayer().getNumber());;
	updateGroups();
}
My custom authentication does not return/edit the player name/nickname, is the server returning a blank player name/nickname that is overriding what I am setting the in connect?

Comments