I am creating a C# Winform Application which will be used in a corporate domain (Windows Active Directory). The app is to behave as the following:
- When a user opens the App, the App checks if the current user is part of an Active Directory group.
- If it is, the app then allows the user to use the app.
From google searches, I found several ways how to check if a user is part of an Active Directory group. For example in the link here => How to check if a user belongs to an AD group?
My concern is the security part of this. What if someone spoofs a username and domain. He won't need to know the password to allow access to the app.