Is there a way to allow site wide access to my intranet site based on an AD group without having to use the [Authorize] attibute on every controller?
I am using Windows Authentication.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can add the
AuthorizeAttributeto the global filters collection, as described here.It is usually not a good idea to use the Web.config
authorizationelement for this since this restricts file-based access. But when you protect your entire site, using the Web.config file will work just as well.