Add Steam OpenID authentication

This commit is contained in:
hz
2026-07-20 00:30:06 -05:00
parent 18c3d6fc5d
commit cde0e28e44
16 changed files with 564 additions and 29 deletions
+8
View File
@@ -7,3 +7,11 @@ public class RefreshRequest { public string Username { get; set; } = ""; public
public class UpdateProfileRequest { public string? DisplayName { get; set; } public string? Email { get; set; } }
public class ChangePasswordRequest { public string CurrentPassword { get; set; } = ""; public string NewPassword { get; set; } = ""; }
public class DeleteAccountRequest { public string Password { get; set; } = ""; public string Confirmation { get; set; } = ""; }
public class CompleteSteamRequest
{
public string TransactionId { get; set; } = "";
public string Action { get; set; } = "";
public string Username { get; set; } = "";
public string? Email { get; set; }
public string Password { get; set; } = "";
}
@@ -0,0 +1,14 @@
using MongoDB.Bson.Serialization.Attributes;
namespace AuthApi.Models;
public class SteamAuthTransaction
{
[BsonId]
public string Id { get; set; } = "";
public string Status { get; set; } = "pending";
public string? SteamId { get; set; }
public string? UserId { get; set; }
public DateTime CreatedUtc { get; set; }
public DateTime ExpiresUtc { get; set; }
}
+1
View File
@@ -15,4 +15,5 @@ public class User
public DateTime? CreatedUtc { get; set; }
public string? RefreshToken { get; set; }
public DateTime? RefreshTokenExpiry { get; set; }
public string? SteamId { get; set; }
}