Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Using [Authorize(Roles= with an AD security group

$
0
0

Hi,

I'm putting in an authentication mechanism for my web app. If I use a specific user account then it's fine, however, if I try and use an AD security group then it prompts for authentication despite being in the user group.

Works:

[Authorize(Roles = "DOMAIN\\user.name")]

Does not work:

[Authorize(Roles = "DOMAIN\\Security Group")]

Using MVC 5

Any pointers?


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>