Verifying authentication session on server

Hi,

Right now, I’ve got a system in place where players can enter their credentials using UMG. Those credentials are then posted over HTTPS to a webserver, which in turn returns a json reply with a session id and authentication token.

The idea is that the session id and authentication token are then given to a gameserver on-connect to verify and validate the session. Thats the point where I’m currently stuck at.

From what I’ve been able to gather, there are a few functions that get called on-connect:

AGameSession::ApproveLogin()
AGameSession::PostLogin()
AGameMode::PreLogin()
AGameMode::Login()
AGameMode::PostLogin()

I’m wondering which of these would be the best to use. Also, how would I go about passing custom information to the server on-connect from the client side?

Id like to know that as well. I thought about implementing a Listen Socket to the server and supply the data trough that. Dont know yet if there is some kind of unique client id that gets broadcasted when connection to the server using open