Add GameVersion domain and login validation

This commit is contained in:
Holden
2026-06-19 15:11:08 -05:00
parent 076fed09f2
commit 2cfc5e7369
31 changed files with 291 additions and 39 deletions

View File

@@ -1,6 +1,6 @@
namespace API.Configurations;
namespace API.Configuration;
public class RecNetOptions
{
public bool UseForwardedHeaders { get; set; } = true;
public bool UseForwardedHeaders { get; set; }
}

View File

@@ -34,12 +34,12 @@ public class ProfilesController(IProfileService profileService) : ControllerBase
{
var result = await profileService.LoginAsync(
new LoginProfileCommand(
request.AppVersion,
request.DeviceId,
request.PlatformType,
request.PlatformId,
request.PlatformAuthentication),
ct);
request.PlatformAuthentication
), ct);
if (!result.Succeeded)
return BadRequest(result.Message);

View File

@@ -1,5 +1,5 @@
using System.Text;
using API.Configurations;
using API.Configuration;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.IdentityModel.Tokens;