Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to create a method to check whether current user is in provided AD Group in asp.net core 2.1 web application, For that first I am getting all the ad groups of that user, where he is the member of, then checking whether provided ad group is there in the list or not. Everything is working fine in my local machine, but post I deploy this into IIS, this functionality is not working. It would be really helpful if anybody help me with it.


What I have tried:

It is working fine in visual studio but not working in IIS
Posted

1 solution

An anonymous web application on its own cannot see who the logged in user is; you would need to set up the IIS environment for Windows Authentication.

I personally have not done this in an Asp.Net Core application, but MS does have some fresh documentation on exactly how to do this:
Configure Windows Authentication in ASP.NET Core | Microsoft Docs[^]

My projects have migrated into SSO (Single Sign On) and are utilizing Active Directory Federation Services as a provider for this. It is a lot more complicated though
Active Directory Federation Services | Microsoft Docs[^]
 
Share this answer
 

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