GameServer.OAuth.Exchanger (GameServer v1.0.509)
Default implementation for exchanging OAuth codes with providers.
This module is intentionally small and works with the Req library. Tests may replace the exchanger via application config for easier stubbing.
Summary
Functions
Verify a Steam auth ticket using ISteamUserAuth/AuthenticateUserTicket/v1
Fetch a public Steam profile for a given steamid using GetPlayerSummaries. Returns {:ok, map} or {:error, reason}.
Functions
Verify a Steam auth ticket using ISteamUserAuth/AuthenticateUserTicket/v1
Expects a ticket (binary blob) returned by the Steamworks client SDK. Returns {:ok, user_info} on successful verification or {:error, reason} on failure.
Fetch a public Steam profile for a given steamid using GetPlayerSummaries. Returns {:ok, map} or {:error, reason}.