Resolve all high-severity architecture review findings
This commit is contained in:
@@ -299,7 +299,7 @@ public sealed class FlowDebugService : IFlowDebugService
|
||||
var shortId = c.ToString("N")[..12];
|
||||
try
|
||||
{
|
||||
var requestedBy = await _auth.GetCurrentUsernameAsync();
|
||||
var requestedBy = await _auth.RequireRoleAsync(Roles.Deployer);
|
||||
var corr = Guid.NewGuid().ToString("N");
|
||||
|
||||
if (isNotify)
|
||||
@@ -580,7 +580,7 @@ public sealed class FlowDebugService : IFlowDebugService
|
||||
|
||||
private async Task<AuthenticatedUser> BuildAuthenticatedUserAsync()
|
||||
{
|
||||
var state = await _auth.GetAuthenticationStateAsync();
|
||||
var state = await _auth.GetAuthoritativeStateAsync();
|
||||
var principal = state.User;
|
||||
|
||||
var username = principal.FindFirst(JwtTokenService.UsernameClaimType)?.Value ?? "unknown";
|
||||
|
||||
Reference in New Issue
Block a user