I built my own API in .NET Core 2 and uploaded it to Azure. We are using AD Connect and I configured my App to use AAD Authentication like it is described here: https://learn.microsoft.com/en-us/azure/app-service/app-service-mobile-how-to-configure-active-directory-authentication
We only want to use the App from inside our companies network, where everybody is already logged in with his AD-Credentials. Therefore SSO should be available for us. However, I have no idea how to configure my .NET Core 2 app to make use of this. On the internet I find a lot about OpenId or OAuth 2.0 etc, but this does not help me, because we only want normal Windows Authentication.
Any ideas, how I have to configure my .NET Core 2 App correctly?
I already added this service:
services.AddAuthentication(auth =>
{
auth.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
auth.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme;
auth.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
})
.AddCookie()
.AddOpenIdConnect();
and added Authentication Middleware:
app.UseAuthentication();
Its very likely, that my configuration does not work like this. Any ideas or helpful links, how I can archive, what I want?