I added this line of code in PreConfigureServices section of AuthServer
PreConfigure<IdentityOptions>(builder => { builder.Lockout = new LockoutOptions { AllowedForNewUsers = Convert.ToBoolean(configuration.GetSection("UserLockOutOptions:AllowedForNewUsers").Value), MaxFailedAccessAttempts = Convert.ToInt32(configuration.GetSection("UserLockOutOptions:MaxFailedAccessAttempts").Value), }; });
It should set LockoutEnabled to false for new users but this still remains true. I also tried same in PostConfigureServices and ConfigureServices
I read this suggestion here https://github.com/aspnetboilerplate/aspnetboilerplate/issues/4029 one of the suggestions is similar to my implementation. The second one is using AbpZero . I might need a license for it and not sure it will work.