I'm developing an ASP.NET C # application and at the moment I'm at the sign-in point that is almost finished.
I'm using <authentication mode="Windows"></authentication>
and a code that allows the application to verify that the credentials are correct.
I'm just missing code that restricts group permissions.
I would like you to give me a simple code that allows me to basically give the permission to enter the application only the users that are within the existing AD group.
<configuration>
<system.web>
<authorization>
<allow roles="meudominio\Grupo"/>
<deny users="*"/>
</authorization>
<compilation targetFramework="4.0" debug="true"/>
</system.web>
</configuration>