hi
I have refunded your question credits. If there is a UI problem I will deep-check it.
Thanks.
hi
Can you share an entire project?
or the ef core project MyCompanyName.MyProjectName.EntityFrameworkCore
hi
Can you share a project?
liming.ma@volosoft.com
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