1 write to Succeeded
Microsoft.AspNetCore.Authorization (1)
AuthorizationResult.cs (1)
15
private static readonly AuthorizationResult _succeededResult = new() {
Succeeded
= true };
58 references to Succeeded
Aspire.Dashboard (1)
Authentication\AspirePolicyEvaluator.cs (1)
115
if (result.
Succeeded
)
Microsoft.AspNetCore.Authorization (1)
DefaultAuthorizationService.cs (1)
78
if (result.
Succeeded
)
Microsoft.AspNetCore.Authorization.Policy (1)
PolicyEvaluator.cs (1)
99
if (result.
Succeeded
)
Microsoft.AspNetCore.Authorization.Test (53)
DefaultAuthorizationServiceTests.cs (52)
47
Assert.True(allowed.
Succeeded
);
68
Assert.True(allowed.
Succeeded
);
90
Assert.True(allowed.
Succeeded
);
110
Assert.False(allowed.
Succeeded
);
137
Assert.False(allowed.
Succeeded
);
188
Assert.False(allowed.
Succeeded
);
217
Assert.False(allowed.
Succeeded
);
239
Assert.False(allowed.
Succeeded
);
260
Assert.False(allowed.
Succeeded
);
279
Assert.False(allowed.
Succeeded
);
293
Assert.False(allowed.
Succeeded
);
308
Assert.False(allowed.
Succeeded
);
329
Assert.True(allowed.
Succeeded
);
364
Assert.True(allowed.
Succeeded
);
385
Assert.True(allowed.
Succeeded
);
402
Assert.True(allowed.
Succeeded
);
419
Assert.True(allowed.
Succeeded
);
435
Assert.True(allowed.
Succeeded
);
456
Assert.False(allowed.
Succeeded
);
476
Assert.False(allowed.
Succeeded
);
504
Assert.False(allowed.
Succeeded
);
530
Assert.True(allowed.
Succeeded
);
552
Assert.True(allowed.
Succeeded
);
574
Assert.True(allowed.
Succeeded
);
599
Assert.True(allowed.
Succeeded
);
619
Assert.False(allowed.
Succeeded
);
652
Assert.False(allowed.
Succeeded
);
673
Assert.True(allowed.
Succeeded
);
714
Assert.Equal(shouldSucceed, allowed.
Succeeded
);
742
Assert.True(allowed.
Succeeded
);
769
Assert.False(allowed.
Succeeded
);
796
Assert.False(allowed.
Succeeded
);
858
Assert.True((await authorizationService.AuthorizeAsync(user, null, Operations.Edit)).
Succeeded
);
859
Assert.True((await authorizationService.AuthorizeAsync(user, null, Operations.Delete)).
Succeeded
);
860
Assert.True((await authorizationService.AuthorizeAsync(user, null, Operations.Create)).
Succeeded
);
900
Assert.False((await authorizationService.AuthorizeAsync(user, 1, Operations.Edit)).
Succeeded
);
901
Assert.True((await authorizationService.AuthorizeAsync(user, 2, Operations.Edit)).
Succeeded
);
922
Assert.False((await authorizationService.AuthorizeAsync(user, 1, Operations.Edit)).
Succeeded
);
937
Assert.True((await authorizationService.AuthorizeAsync(user, new ExpenseReport(), Operations.Edit)).
Succeeded
);
938
Assert.False((await authorizationService.AuthorizeAsync(user, new ExpenseReport(), Operations.Delete)).
Succeeded
);
939
Assert.False((await authorizationService.AuthorizeAsync(user, new ExpenseReport(), Operations.Create)).
Succeeded
);
954
Assert.False((await authorizationService.AuthorizeAsync(user, null, Operations.Edit)).
Succeeded
);
973
Assert.True(allowed.
Succeeded
);
992
Assert.True(allowed.
Succeeded
);
1031
Assert.False(allowed.
Succeeded
);
1068
Assert.False((await authorizationService.AuthorizeAsync(user, "0")).
Succeeded
);
1069
Assert.True((await authorizationService.AuthorizeAsync(user, "1")).
Succeeded
);
1070
Assert.True((await authorizationService.AuthorizeAsync(user, "2")).
Succeeded
);
1071
Assert.False((await authorizationService.AuthorizeAsync(user, "3")).
Succeeded
);
1088
Assert.True(result.
Succeeded
);
1128
Assert.False((await authorizationService.AuthorizeAsync(null, "Success")).
Succeeded
);
1147
Assert.False((await authorizationService.AuthorizeAsync(null, "Success")).
Succeeded
);
PassThroughAuthorizationHandlerTests.cs (1)
44
Assert.False(allowed.
Succeeded
);
Microsoft.AspNetCore.Components.Authorization (1)
AuthorizeViewCore.cs (1)
113
return result.
Succeeded
;
Microsoft.AspNetCore.SignalR.Core (1)
Internal\DefaultHubDispatcher.cs (1)
687
return authorizationResult.
Succeeded
;