Fix RLS permissions and JWT validation for admin club creation #5

Merged
MasterMito merged 18 commits from fix/rls-permission-test-failure into epic/admin_rework_second_try 2026-03-20 11:42:05 +01:00
Showing only changes of commit fdc1f415b7 - Show all commits
+4
View File
@@ -223,6 +223,10 @@ app.MapGet("/weatherforecast", () =>
}) })
.WithName("GetWeatherForecast"); .WithName("GetWeatherForecast");
// Simple test endpoint for middleware validation tests
app.MapGet("/api/test", () => Results.Ok(new { message = "Test endpoint" }))
.RequireAuthorization();
app.MapGet("/api/debug/claims", (HttpContext context) => app.MapGet("/api/debug/claims", (HttpContext context) =>
{ {
var claims = context.User.Claims.Select(c => new { c.Type, c.Value }).ToList(); var claims = context.User.Claims.Select(c => new { c.Type, c.Value }).ToList();