hi
How many permissions in your project? Can you enable the debug logs, reproduce the problem, and then share the logs?
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
Thanks
liming.ma@volosoft.com
hi
liming.ma@volosoft.com
What are JSON results of https://yourwebsite/api/abp/application-configuration?includeLocalizationResources=false in your angular app?
Can you try to debug the FindUserId method?
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Security/System/Security/Principal/AbpClaimsIdentityExtensions.cs#L11-L47 https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Security/Volo/Abp/Users/CurrentUser.cs#L16
Hi
You can replace it to AddJwtBearer
hi
AddJwtBearer method can map your okta_jwt_schema to compatible with abp.
.AddAbpJwtBearer(options =>
{
options.MapInboundClaims = false;
options.Events.OnTokenValidated = async tokenValidatedContext =>
{
var yourClaims = tokenValidatedContext.Principal?.Claims;
// Mpa your okta claims to abp claims
if (tokenValidatedContext.Principal?.Identity is ClaimsIdentity claimIdentity)
{
claimIdentity.AddClaim(AbpClaimTypes.UserId, "");
claimIdentity.AddClaim(AbpClaimTypes.UserName, "");
claimIdentity.AddClaim(AbpClaimTypes.SurName, "");
claimIdentity.AddClaim(AbpClaimTypes.Email, "");
claimIdentity.AddClaim(AbpClaimTypes.Role, "");
}
};
});
hi
Can you share your packages.json file?
Have npm packages been upgraded to 9.x?