1
public class SteamUserSession : AuthUserSession
{
public UserService UserService { get; set; } //Should be autowired
public long SteamID { get; private set; }
public User CurrentUser { get; private set; }
public Player SteamProfile { get; private set; }
public List<SteamGame> OwnedApps { get; private set; }
public override void OnAuthenticated(
IServiceBase authService,
IAuthSession session,
IOAuthTokens tokens,
Dictionary<string, string> authInfo)
{
base.OnAuthenticated(authService, session, tokens, authInfo);
// access servicestack user server and load properies for session here
CurrentUser = (User)UserService.Get(new GetUser(SteamID));
}
}