It will be fixed after 9.1.1
Thanks.
hi
Can you try to add MyAbpEfCoreNavigationHelper to your Auth(EF Core) website?
https://abp.io/support/questions/8933/Intermittent-Login-Failure-After-Upgrading-ABP-Framework-to-v9#answer-3a189b11-6314-b51d-08de-b775c7bdf450
hi
This article has a similar feature.
You can check it
https://abp.io/community/articles/switching-between-organization-units-i5tokpzt#gsc.tab=0
Thanks.
hi
Can you share your DbContext
class code?
Maybe https://github.com/abpframework/abp/issues/14498#issuecomment-1298061321 will help.
Thanks
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