Click here to Skip to main content
16,020,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi,
I have created a web api service with window authentication for Intranet users in ASP.NET Core, Authentication on service is working properly except that it accept all domain user which have valid credentials for requested machine, I just want that it validate for single domain users only, like users only with domain 'NOIDA'.

Thanks in advance.

Abhishek Singh

What I have tried:

I have tried following code in web config, but not working.
<authorization>
     <allow roles="NOIDA\abc"/>
     <deny users="*"/>
   </authorization>
Posted
Updated 21-Mar-17 23:55pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900