1 write to AllowedRoles
Microsoft.AspNetCore.Authorization (1)
RolesAuthorizationRequirement.cs (1)
30
AllowedRoles
= allowedRoles;
9 references to AllowedRoles
Microsoft.AspNetCore.Authorization (2)
RolesAuthorizationRequirement.cs (2)
49
foreach (var role in requirement.
AllowedRoles
)
69
var roles = $"User.IsInRole must be true for one of the following roles: ({string.Join("|",
AllowedRoles
)})";
Microsoft.AspNetCore.Authorization.Test (6)
AuthorizationPolicyFacts.cs (6)
111
Assert.Equal(2, rolesAuthorizationRequirement.
AllowedRoles
.Count());
112
Assert.Contains(rolesAuthorizationRequirement.
AllowedRoles
, r => r.Equals("r1"));
113
Assert.Contains(rolesAuthorizationRequirement.
AllowedRoles
, r => r.Equals("r2"));
172
Assert.Equal(2, rolesAuthorizationRequirement.
AllowedRoles
.Count());
173
Assert.Contains(rolesAuthorizationRequirement.
AllowedRoles
, r => r.Equals("r1"));
174
Assert.Contains(rolesAuthorizationRequirement.
AllowedRoles
, r => r.Equals("r2"));
Microsoft.AspNetCore.Components.Authorization.Tests (1)
AuthorizeViewTest.cs (1)
450
((RolesAuthorizationRequirement)req).
AllowedRoles
));