Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
We would like to run ASPNETZERO under IIS using Windows Authentication, using ADFS or LDAP is not we are trying to achieve. We tried some solutions but they are not complete, the application keeps prompting for login. We need to override passing the token in the file AbpHttpInterceptor, your input is highly appreciated to overide passing the token in the AbpHttpInterceptor.
Best regards, Anas.
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
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.
My question regarding downloading a project, I wanted to update a current project to the latest version, so I generated a new project with the same name but with the latest version but that counted a download of my license, how can I undo this action please?
Hello,
Thank you for your response, but It is not the solution that we are looking for, we already tested LDAP and it is working but as I was informed by the team, if we enable the LDAP we will lose the Multitenancy feature which is a very important feature in our case we have at least 3 tenants.
Regards, Anas Nabelsi.
Hello,
We started a new project based on ASPNETZERO the template of ASP.NET Core and Angular 9. We would like to enable our users to access the application using their active directory account and without being prompted to enter username and password.
We followed some articles in the documentation and some posts in stackoverflow but we are not able to get this to work, here is what we did:
if (AppConsts.isWindowsAuthentication == true) { this.loginService.authenticateModel.userNameOrEmailAddress = 'foo'; this.loginService.authenticateModel.password = 'bar'; this.login(); }
public class AlwaysTrueExternalAuthSource : DefaultExternalAuthenticationSource<Tenant, User>, ITransientDependency { public override string Name => "AlwaysTrueExternalAuthSource"; public override Task TryAuthenticateAsync(string userNameOrEmailAddress, string plainPassword, Tenant tenant) { return Task.FromResult(true); } }
Configuration.Modules.Zero().UserManagement.ExternalAuthenticationSources.Add<AlwaysTrueExternalAuthSource>();
var windowsIdentity = WindowsIdentity.GetCurrent(); model.UserNameOrEmailAddress = windowsIdentity.Name.ToLowerInvariant(); model.UserNameOrEmailAddress = model.UserNameOrEmailAddress.Substring(model.UserNameOrEmailAddress.IndexOf("\\") + 1);
We published the application to IIS and when we browse the application, we are redirected to the login page and the username and password are by default filled with foo and bar and then the login process is triggered and the page is redirected.
Notes: We published the application to IIS and we enabled Windows Authentication and we also installed IIS CORS Module and configured it although this is not required because we are using a signle application to host both backend and frontend applications.
Your support is highly appreciated, this should be easy task following the documentation but it is not getting to work and we have spent 2 days on this and we can't be delayed more.
Best regards, Anas Nabelsi.