hi
It seems your ef core migration files are not generated by Oracle provider.
Please check it and make sure your db provider is Oracle.
这样也是可以的.
hi
Please share the password, liming.ma@volosoft.com
Thanks.
hi
I sent a project to you.
hi
This is your JWT claims:
context.Services.AddAuthentication()
.AddJwtBearer(options =>
{
options.TokenValidationParameters = new TokenValidationParameters
{
ValidateIssuer = true,
ValidIssuer = configuration["Jwt:Issuer"],
ValidateAudience = true,
ValidAudience = configuration["Jwt:Audience"],
ValidateLifetime = false,
ValidateIssuerSigningKey = true,
IssuerSigningKey = securityKey
};
options.MapInboundClaims = false;
});
app.UseRouting();
app.UseAuthentication();
app.UseAbpOpenIddictValidation();
//https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Authentication.JwtBearer/Microsoft/AspNetCore/Builder/ApplicationBuilderAbpJwtTokenMiddlewareExtension.cs#L8
app.Use(async (httpContext, next) =>
{
if (httpContext.User.Identity?.IsAuthenticated != true)
{
var result = await httpContext.AuthenticateAsync(JwtBearerDefaults.AuthenticationScheme);
if (result.Succeeded && result.Principal != null)
{
httpContext.User = result.Principal;
}
}
await next();
});
if (MultiTenancyConsts.IsEnabled)
{
app.UseMultiTenancy();
}
hi
You have set these claim types.
AbpClaimTypes.UserName
AbpClaimTypes.Name
AbpClaimTypes.SurName
AbpClaimTypes.UserId
AbpClaimTypes.Role
AbpClaimTypes.Email
https://github.com/abpframework/abp/blob/dev/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/AbpOpenIddictAspNetCoreModule.cs#L41-L53
hi
Does this affect your UI? Or is it just in the logs?
这是EF Core 8 的一个bug
请关注 https://github.com/dotnet/efcore/issues/32383
我会尝试找一个解决方案