Activities of "maliming"

hi

Can you share your DbContext class code?

Maybe https://github.com/abpframework/abp/issues/14498#issuecomment-1298061321 will help.

Thanks

hi

You can use IntrospectAccessToken, which will check the access token, and redirect to the login page when it is invalid

Thanks

You can override the EntityActions component before the new patch version.

See https://github.com/abpframework/abp/pull/23291

hi

Can you log the claims and token again?

app.UseAuthentication(); 
 
app.Use(async (httpContext, next) => 
{ 
    var logger = httpContext.RequestServices.GetRequiredService<ILogger<EmployeeServiceHttpApiHostModule>>(); 
    var claims = httpContext.User.Claims.Select(x => new { x.Type, x.Value }).ToList(); 
    logger.LogError("HttpContext.User Claims:"); 
    logger.LogError(JsonSerializer.Serialize(claims)); 
 
    var currentUser = httpContext.RequestServices.GetRequiredService<ICurrentUser>().GetAllClaims().Select(x => new { x.Type, x.Value }).ToList(); 
    logger.LogError("Current User Claims:"); 
    logger.LogError(JsonSerializer.Serialize(currentUser)); 
 
 
    var userid = AbpClaimTypes.UserId; 
    var username = AbpClaimTypes.UserName; 
    var roleClaimType = AbpClaimTypes.Role; 
 
    logger.LogError($"UserId Claim Type: {userid}"); 
    logger.LogError($"UserName Claim Type: {username}"); 
    logger.LogError($"Role Claim Type: {roleClaimType}"); 
 
    var authorizationHeader = httpContext.Request.Headers["Authorization"]; 
    logger.LogError(!string.IsNullOrEmpty(authorizationHeader) 
        ? $"Authorization Header: {authorizationHeader}" 
        : "Authorization Header is missing or empty."); 
 
    await next(httpContext); 
}); 

hi

In all microservice/apps projects.

Sorry, I mean if EF Core(SQL) has this limitation. You can't do it.

hi

You can use ForwardedHeaders feature.

https://abp.io/support/questions/1950/How-to-use-a-custom-HTTP-header-to-get-the-client-remote-IP-address

hi

This gap is too wide. It's not easy to upgrade fast.

Check the new microservices solution at https://abp.io/docs/latest/solution-templates/microservice.

You can create a latest microservices solution. Then migrate your old service into the new solution.

For your old services, the migration is straightforward. Please refer https://abp.io/docs/latest/release-info/migration-guides

Thanks.

hi @jayjack07

I will check and fix it in next 9.2 patch version.

Thanks.

Thanks for your solution 👍

Showing 1701 to 1710 of 11558 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.