3 references to RequireUserName
Microsoft.AspNetCore.Authorization.Test (3)
DefaultAuthorizationServiceTests.cs (3)
491
services.AddAuthorizationBuilder().AddPolicy("Hao", policy => policy.
RequireUserName
("Hao")));
515
options.AddPolicy("Hao", policy => policy.
RequireUserName
("Hao"));
541
options.AddPolicy("Hao", policy => policy.
RequireUserName
("Hao"));