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