class

FServerAuthSession

The server side of the join handshake, apart from the socket so a test drives it without one. On connect it sends the peer a challenge (a fresh nonce, the issue time, and each configured provider with the identity a credential must be bound to); the peer answers with a credential for one provider, echoing the nonce. A credential whose nonce is not the one issued to THAT connection is refused before any verifier sees it, which is what stops a captured ticket being replayed on another connection. The verdict, duplicate-login check and the join deadline live here too.

Module
Networking
Header
#include "Networking/Auth/ServerAuth.h"
Namespace
Mowo

Properties

TypeNameDescription
std::function<void(uint32_t peerId, uint64_t userId, const std::string& provider)>OnAuthenticatedFires on the game thread when a peer is admitted / refused.
std::function<void(uint32_t peerId, const std::string& reason)>OnRejected

Public functions

ReturnsNameDescription
voidConfigure
voidReset
boolIsEnabledTrue when at least one verifier is configured: peers must authenticate.
voidPeerConnected
voidPeerDisconnected
boolHandleFrameTrue when the frame was a handshake frame (consumed whether or not it was accepted); the caller must not treat it as game traffic.
voidUpdate
boolIsAuthenticated
boolIsPending
uint64_tGetUserId
std::stringGetProvider
size_tAuthenticatedCount
voidResolvePeerA verifier outside the session's own call chain (Steam's ban notice) resolves or revokes a peer through these.
voidRevokePeer
boolGetIssuedNonceThe nonce a peer was challenged with, for tests and diagnostics.

Function details

Configure

C++
void Configure(const FHooks& hooks, float timeoutSeconds)

Reset

C++
void Reset()

IsEnabled

C++
bool IsEnabled() const

True when at least one verifier is configured: peers must authenticate.

PeerConnected

C++
void PeerConnected(uint32_t peerId, const std::string& address)

PeerDisconnected

C++
void PeerDisconnected(uint32_t peerId)

HandleFrame

C++
bool HandleFrame(uint32_t peerId, const uint8_t* data, size_t size)

True when the frame was a handshake frame (consumed whether or not it was accepted); the caller must not treat it as game traffic.

Update

C++
void Update(float deltaSeconds)

IsAuthenticated

C++
bool IsAuthenticated(uint32_t peerId) const

IsPending

C++
bool IsPending(uint32_t peerId) const

GetUserId

C++
uint64_t GetUserId(uint32_t peerId) const

GetProvider

C++
std::string GetProvider(uint32_t peerId) const

AuthenticatedCount

C++
size_t AuthenticatedCount() const

ResolvePeer

C++
void ResolvePeer(uint32_t peerId, const FServerAuthVerdict& verdict)

A verifier outside the session's own call chain (Steam's ban notice) resolves or revokes a peer through these.

RevokePeer

C++
void RevokePeer(uint32_t peerId, const std::string& reason)

GetIssuedNonce

C++
bool GetIssuedNonce(uint32_t peerId, FServerAuthNonce& outNonce) const

The nonce a peer was challenged with, for tests and diagnostics.

Generated from Networking/Auth/ServerAuth.h via networking.json · Dec 5, 2026Version 1.1.0