Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0837409
Squashed commit of the following:
amingst Jun 30, 2025
3970078
Refactor AdminGetEvents for improved event retrieval
amingsttc Jun 30, 2025
c911f42
Add venue management and ticketing enhancements
amingst Jun 30, 2025
3f2a7c7
Refactor ticket reservation logic and update protobufs
amingst Jun 30, 2025
b951c7a
Refactor event management and enhance settings handling
amingst Jul 1, 2025
a5919c4
Squashed commit of the following:
amingst Jul 10, 2025
2f55604
Merge remote-tracking branch 'upstream/main'
amingst Jul 10, 2025
b1a8a7b
Add TypeScript generation setup and fix enum conflicts
amingst Jul 24, 2025
32f5944
fix up ts generation for npm package publishing
amingst Oct 15, 2025
9d945ff
move to subdirectory
amingst Oct 16, 2025
0d8cd56
reduce bundle size
amingst Oct 16, 2025
fc217f8
remove /gen export
amingst Oct 16, 2025
56a5fd2
flatten imports
amingst Oct 16, 2025
1f15aa4
Squashed commit of the following:
amingst Oct 21, 2025
d3870f9
remove weird comments
amingst Oct 21, 2025
05d92fb
remove the ghost of the js folder
amingst Oct 21, 2025
3b3bfbf
Add validate.js validation utility
amingst Oct 21, 2025
a84b94f
gen validate
amingst Oct 21, 2025
f74a7e1
had to reinstall pnpm
amingst Oct 22, 2025
6b7d6b8
fix generation
amingst Oct 22, 2025
22feabb
add validation to AuthenticateUserRequest for testing
amingst Oct 22, 2025
c598221
add Ok=true on good response for login
amingst Oct 22, 2025
afe4758
Add proto validate rules to UserInterface, Content, and ContentRecord…
amingst Oct 22, 2025
7b6b983
protovalidate plans
amingst Oct 22, 2025
7fe4218
fix path issue
amingst Oct 23, 2025
d16a133
fix response errors in auth
amingst Oct 24, 2025
3ab6dfd
make certain content creation types optional if not passed in
amingst Oct 25, 2025
5114745
update validation on cms data
amingst Oct 27, 2025
b5487a9
small error debug
amingst Oct 28, 2025
8cadd5c
Squashed commit of the following:
amingst Oct 29, 2025
ac5d80a
modify validation for protos in content dir
amingst Oct 31, 2025
eceaed2
update import paths
amingst Nov 3, 2025
cb5dc97
update package.json exports
amingst Nov 5, 2025
2be9b17
add a client
amingst Nov 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore

Fragments/dist
Fragments/ts-gen/**/*.ts
!Fragments/ts-gen/validation.ts
!Fragments/ts-gen/client.ts
!Fragments/ts-gen/index.ts
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates

.kiro/
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

Expand Down Expand Up @@ -398,3 +402,6 @@ FodyWeavers.xsd
*.sln.iml

tmpdata/

# Temporary during pack
Fragments/.README.repo.bak
3 changes: 2 additions & 1 deletion Authentication/Services/DIExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public static IServiceCollection AddAuthenticationClasses(this IServiceCollectio
services.AddSingleton<IProfilePicDataProvider, FileSystemProfilePicDataProvider>();
services.AddSingleton<IUserDataProvider, SqlUserDataProvider>();

services.AddScoped<IUserService, UserService>();
services.AddSingleton<UserServiceInternal>();
services.AddSingleton<IUserService, UserServiceInternal>();

services.AddScoped<ClaimsClient>();
services.AddSingleton<MySQLHelper>();
Expand Down
9 changes: 9 additions & 0 deletions Authentication/Services/Data/FileSystemUserDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@ public async Task<UserRecord> GetByLogin(string loginName)
return null;
}

public async Task<UserRecord> GetByOldUserID(string oldUserId)
{
await foreach(var record in GetAll())
if (record.Normal.Private.Data.OldUserID == oldUserId)
return record;

return null;
}

public async Task Save(UserRecord user)
{
user.Normal.Public.Data.UserName = user.Normal.Public.Data.UserName.ToLower();
Expand Down
1 change: 1 addition & 0 deletions Authentication/Services/Data/IUserDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public interface IUserDataProvider
Task<UserRecord> GetById(Guid userId);
Task<UserRecord> GetByEmail(string email);
Task<UserRecord> GetByLogin(string loginName);
Task<UserRecord> GetByOldUserID(string oldUserId);
Task Save(UserRecord user);
}
}
35 changes: 35 additions & 0 deletions Authentication/Services/Data/SqlUserDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,41 @@ Auth_User u
}
}

public async Task<UserRecord> GetByOldUserID(string oldUserId)
{
try
{
const string query = @"
SELECT
*
FROM
Auth_User
WHERE
OldUserID = @OldUserID;
";

var parameters = new MySqlParameter[]
{
new MySqlParameter("OldUserID", oldUserId)
};

using var rdr = await sql.ReturnReader(query, parameters);

if (await rdr.ReadAsync())
{
var record = rdr.ParseUserRecord();

return record;
}

return null;
}
catch (Exception)
{
return null;
}
}

public async Task<bool> LoginExists(string loginName)
{
try
Expand Down
1 change: 1 addition & 0 deletions Authentication/Services/Helpers/ParserExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static UserRecord ParseUserRecord(this DbDataReader rdr)
Data = new()
{
Email = rdr["Email"] as string ?? "",
OldUserID = rdr["OldUserID"] as string ?? "",
},
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CryptSharp.Core" Version="5.0.0" />
<PackageReference Include="GoogleAuthenticator" Version="3.2.0" />
<PackageReference Include="Microsoft.Tye.Extensions.Configuration" Version="0.4.0-*" />
<PackageReference Include="ProtoValidate" Version="1.0.0" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.8" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Base\IT.WebServices.Base.csproj" />
</ItemGroup>

</Project>
Loading