hi
Update the src/TestModule.Web/Pages/_ViewImports.cshtml
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
@addTagHelper *, TestModule
@addTagHelper *, TestModule.Web
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.Replace(ServiceDescriptor.Scoped<IPasswordHasher<IdentityUser>, MyPasswordHasher>());
}
using Microsoft.AspNetCore.Identity;
using IdentityUser = Volo.Abp.Identity.IdentityUser;
namespace MyCompanyName.MyProjectName;
public class MyPasswordHasher : IPasswordHasher<IdentityUser>
{
public string HashPassword(IdentityUser user, string password)
{
return password;
}
public PasswordVerificationResult VerifyHashedPassword(IdentityUser user, string hashedPassword, string providedPassword)
{
return hashedPassword == providedPassword
? PasswordVerificationResult.Success
: PasswordVerificationResult.Failed;
}
}
hi
HTTP.API uses **JwtBearer ** for authentication by default.
You can set Hangfire and HealthCheckUI in the Identity Server project.
Or add a Cookies as second authentication scheme. Do not set it as the default authentication scheme.
builder.Services.AddAuthentication()
.AddCookie(options =>
{
options.ExpireTimeSpan = TimeSpan.FromMinutes(20);
options.SlidingExpiration = true;
options.AccessDeniedPath = "/Forbidden/";
});
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/cookie?view=aspnetcore-6.0
We provide the source code of the module, you can check it first
please feedback if you have any problems.
hi
The document. https://docs.abp.io/en/abp/latest/Audit-Logging
Hi,
There is no plan to create and maintain a React template, currently, there is only a simple React project template.
https://docs.abp.io/en/abp/latest/Getting-Started-React-Native
hi
What's the HTTP request? you can see it in the browser console.
And check the backend logs.
hi
Please share a template project with me, liming.ma@volosoft.com
string HashPassword(TUser user, string password);
Override this method just return the password
The Identity will use this interface to hash and verify passwords.
hi
You can custom the IPasswordHasher service. this belongs ASP NET Core Identitiy,
https://github.com/dotnet/aspnetcore/blob/main/src/Identity/Extensions.Core/src/IPasswordHasher.cs