It's weird.
Can you debug the app and inject the
IOptions<AbpAccountOptionsto see its values?
ok will check and update u
hi
The log says : Require
AbpIdentity.Userspermission to impersonate user!",What's your
ImpersonationUserPermissionvalue?Eg:
context.Services.Configure<AbpAccountOptions>(options => { //For impersonation in Saas module options.TenantAdminUserName = "admin"; options.ImpersonationTenantPermission = SaasHostPermissions.Tenants.Impersonation; //For impersonation in Identity module options.ImpersonationUserPermission = IdentityPermissions.Users.Impersonation; });
we are using the below
and added below as well in auth server
hi
IDX10214: Audience validation failed. A Audiences: 'IdentityService, AdministrationService, SaasService, EmployeeService, IncidentService, AttachmentService, ObservationsService, ActionService, UserTaskService, HSEPlansService, NCRService, CustomerService, InspectionService, Forms, FileManagement, AuthServer, RMService, TMService, PTWService'.
Did not match: validationParameters.ValidAudience: 'AccountService' or validationParameters.ValidAudiences: 'null'.
Your
access_tokenseems to be missing theAccountServiceaudience.
Aftering doing the suggisted change
we are getting the below issues for our services
PermissionRequirement: EmployeeService.Employees.Create
2024-01-22 12:58:41.151 +05:30 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: EmployeeService.Employees.Create
2024-01-22 12:58:41.174 +05:30 [WRN] Could not find the localization resource LeptonX on the remote server!
2024-01-22 12:58:41.178 +05:30 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: EmployeeService.Employees.Create
2024-01-22 12:58:41.206 +05:30 [WRN] Could not find the localization resource LeptonX on the remote server!
2024-01-22 12:58:41.207 +05:30 [WRN] Could not find the localization resource LeptonX on the remote server!
2024-01-22 12:58:41.208 +05:30 [WRN] Could not find the localization resource LeptonX on the remote server!
2024-01-22 12:58:41.208 +05:30 [WRN] Could not find the localization resource LeptonX on the remote server!
2024-01-22 12:58:41.208 +05:30 [WRN] Could not find the localization resource LeptonX on the remote server!
2024-01-22 12:58:41.208 +05:30 [WRN] Could not find the localization resource LeptonX on the remote server!
2024-01-22 12:58:41.211 +05:30 [WRN] Could not find the localization resource LeptonX on the remote server!
2024-01-22 12:58:42.601 +05:30 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: ObservationsService.Observations
2024-01-22 12:58:42.601 +05:30 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: IncidentService.IncidentManagements
2024-01-22 12:58:42.601 +05:30 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: InspectionService.AuditsManagements
2024-01-22 12:58:42.602 +05:30 [INF] Authorization failed. These requirements were not met:
PermissionRequirement: InspectionService.InspectionManagements
Still we proceeded and tried the same but getting the below error as well
{ "code": "Volo.Account:RequirePermissionToImpersonateUser", "message": "Require AbpIdentity.Users permission to impersonate user!", "details": null, "data": { "PermissionName": "AbpIdentity.Users" }, "validationErrors": null }
My first question is this functionality and steps valid for ABP7?
Hi,
Sorry for that, I forgot it is not included in the downloaded source code.
You can tell me which files you want to remove and I will repackage and share it with you
Thats fine, actually we would like to exclude webpack://leptonx/./node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js
Also, I have some suggitions
Yes, you can remove unnecessary files and repackage using webpack
ok we will give a try, but if possible in future release try to come up with an option to replace files in a pre-defned bundles at run time.
also please do share any reference link for the process using webpack in a abp.io way
Hi,
You can download the leptonx theme source code to re-pack the
Leptonx.bundle.min.js
You mean to say the LeptoX theme source code to re build the Leptonx.bundle.min.js with required file changes right
Hi,
Sorry, I didn't get it.
The
Leptonx.bundle.min.jsis not a bundle package. It is a separate js file. you have to replace or delete it entirely
Yes it is a seperate file but which is nothing but combination of files with minification as a single bundle file right, basically we want to remove some files which are part of that.