Switched to database scheme seperation from MoonCores SingleDb. Updated mooncore versions. Updating to correct Async naming

This commit is contained in:
2025-09-21 16:44:01 +00:00
parent 86bec7f2ee
commit 3e87d5c140
93 changed files with 587 additions and 1583 deletions

View File

@@ -30,7 +30,7 @@ public class AuthController : Controller
}
[HttpGet]
public async Task<AuthSchemeResponse[]> GetSchemes()
public async Task<AuthSchemeResponse[]> GetSchemesAsync()
{
var schemes = await SchemeProvider.GetAllSchemesAsync();
@@ -47,7 +47,7 @@ public class AuthController : Controller
}
[HttpGet("{identifier:alpha}")]
public async Task StartScheme([FromRoute] string identifier)
public async Task StartSchemeAsync([FromRoute] string identifier)
{
// Validate identifier against our enable list
var allowedSchemes = Configuration.Authentication.EnabledSchemes;
@@ -91,7 +91,7 @@ public class AuthController : Controller
[Authorize]
[HttpGet("check")]
public async Task<AuthClaimResponse[]> Check()
public async Task<AuthClaimResponse[]> CheckAsync()
{
var username = User.FindFirstValue(ClaimTypes.Name)!;
var id = User.FindFirstValue(ClaimTypes.NameIdentifier)!;
@@ -113,7 +113,7 @@ public class AuthController : Controller
foreach (var extension in Extensions)
{
claims.AddRange(
await extension.GetFrontendClaims(User)
await extension.GetFrontendClaimsAsync(User)
);
}
@@ -121,7 +121,7 @@ public class AuthController : Controller
}
[HttpGet("logout")]
public async Task Logout()
public async Task LogoutAsync()
{
await HttpContext.SignOutAsync();
await Results.Redirect("/").ExecuteAsync(HttpContext);