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)
-
0
Hi,
This controller is defined in the Framework, see https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.AspNetCore/AspNetCore/Mvc/Controllers/AbpUserConfigurationController.cs.
You can copy its source code to your project with a different name and change the URL on Angular side with the new URL and debug it. But, I think this is not the problem. Maybe your IIS app pool can't get the user info, is that possible ?