LootLocker Unreal Server SDK 6.5.0
Server-side backend SDK for Unreal Engine
Loading...
Searching...
No Matches
Token Exchange

Detailed Description

Exchange player-held game API tokens for use on the server.

Server-to-client token exchange allows a server to obtain a short-lived token on behalf of a player — useful for game clients that need to authenticate server actions back to the player. Supports OAuth2-style flows including refresh.

See the LootLocker documentation.

Function Documentation

◆ GameApiTokenExchange()

static FString ULootLockerServerForCpp::GameApiTokenExchange ( const FString &  GameApiSessionToken,
const FLootLockerServerTokenExchangeResponseDelegate OnCompletedRequest 
)
static

Get a new active game api session token for the player holding the supplied game api session token.

This will allow the server to make requests to the game api on behalf of the user corresponding to the original token.

Parameters
GameApiSessionTokenThe session token for a current game api session to use in exchange for a new one
OnCompletedRequestDelegate for handling the response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

◆ GameApiUserImpersonation()

static FString ULootLockerServerForCpp::GameApiUserImpersonation ( const FString &  PlayerUlid,
const FLootLockerServerTokenExchangeResponseDelegate OnCompletedRequest 
)
static

Get a new active game api session token for the specified player.

This will allow the server to make requests to the game api on behalf of the specified user.

Parameters
PlayerUlidThe ulid of the player you wish to impersonate
OnCompletedRequestDelegate for handling the response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

Functions

static FString ULootLockerServerForCpp::GameApiTokenExchange (const FString &GameApiSessionToken, const FLootLockerServerTokenExchangeResponseDelegate &OnCompletedRequest)
 Get a new active game api session token for the player holding the supplied game api session token.
 
static FString ULootLockerServerForCpp::GameApiUserImpersonation (const FString &PlayerUlid, const FLootLockerServerTokenExchangeResponseDelegate &OnCompletedRequest)
 Get a new active game api session token for the specified player.