Base solution for your next web application
Open Closed

ASPNETZERO Windows Authentication - IIS - AbpUserConfiguration/GetAll unauthorized 401 #10079


User avatar
0
Mepgovlic created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version?
  • ASPNETZERO v10
  • What is your product type (Angular or MVC)?
  • Angular
  • What is product framework type (.net framework or .net core)?
  • .NET 5

If issue related with ABP Framework

  • What is ABP Framework version?

If issue is about UI

  • Which theme are you using?
  • What are the theme settings?

We setup ASPNETZERO to use windows authentication as stated in this article on stackoverflow: https://stackoverflow.com/questions/48820965/integrated-windows-authentication-in-abp-framework

It works fine on IISExpress after enabling windows authentication and disabling anonymous authentication, the current user is identified and his profile is created and he is assigned Admin role by default. But when we publish to IIS we get an error in the call AbpUserConfiguration/GetAll forbidden 401 as shown in the screenshot below.

We also updated the AuthConfigurer and added: var authenticationBuilder = services.AddAuthentication(IISDefaults.AuthenticationScheme);

Kindly how can we debug this, we couldn't find the AbpUserConfiguration/GetAll controller or application service, we need to debug the Authorize attribute as well, your support is highly appreciated.


1 Answer(s)