fix(auth): ScadaBridge Task 1.5 review — use JwtTokenService.RoleClaimType constant in CentralUI tests (canonical spelling)

This commit is contained in:
Joseph Doherty
2026-06-02 06:29:16 -04:00
parent a0938f708b
commit c185a567f5
12 changed files with 13 additions and 13 deletions
@@ -30,7 +30,7 @@ public class DataConnectionFormTests : BunitContext
var claims = new[]
{
new Claim(JwtTokenService.UsernameClaimType, "tester"),
new Claim(ClaimTypes.Role, "Admin")
new Claim(JwtTokenService.RoleClaimType, "Admin")
};
var user = new ClaimsPrincipal(new ClaimsIdentity(claims, "TestAuth"));
Services.AddSingleton<AuthenticationStateProvider>(new TestAuthStateProvider(user));