Specifying Windows AuthenticationScheme and Roles Doesn't Work
问题 How do I specify that the AuthenticationScheme is Windows and check that the user is a member of an AD Group? When I specify the AuthenticationScheme , setting the Roles no longer works, why not? And how do I fix that? public class SomeController : Controller { //this works [Authorize(Roles = @"SOME.DOMAIN\SOME GROUP")] public IActionResult SomeAction(){ ... } //this works [Authorize(AuthenticationSchemes = "Windows")] //this doesn't work //[Authorize(Roles = @"SOME.DOMAIN\SOME GROUP",