ASP.NET C# Web API – IIS Active Directory Authentication

Overview Companies that use Windows Servers (IIS) or Azure cloud service will have Active Directory groups, Most W-2 employees in a company will have an account with their unique user name. Everyone should belong to at least one or more Active Directory groups for access. If your application is deployed behind the company firewall (Intranet)

React – Protected Routes

Overview Below is a quick how to protect certain routes from users that are not authenticated. An exported function labeled “ProtectedRoute” will check if the user is authenticated otherwise it will redirect to another component that handles authentication. This is just a solution I came across on stackoverflow and is similar to Angular’s AuthGuard. This