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_token
seems to be missing theAccountService
audience.
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.js
is 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.
No, As I said you try to replace the
AbpSelectTagHelperService
instead ofAbpTagHelperService<AbpSelectTagHelper>
,AbpSelectTagHelper
For example:
[Dependency(ReplaceServices = true)] [ExposeServices(typeof(AbpSelectTagHelperService))] public class MySelectTagHelperService : AbpSelectTagHelperService { public MySelectTagHelperService(IHtmlGenerator generator, HtmlEncoder encoder, IAbpTagHelperLocalizer tagHelperLocalizer, IStringLocalizerFactory stringLocalizerFactory, IAbpEnumLocalizer abpEnumLocalizer) : base(generator, encoder, tagHelperLocalizer, stringLocalizerFactory, abpEnumLocalizer) { } public override void Process(TagHelperContext context, TagHelperOutput output) { ... base.Process(context, output); } }
It worked thanks, will let you know in case of any thing else.
Hi,
You can try to replace the
AbpSelectTagHelperService
.[Dependency(ReplaceServices = true)] [ExposeServices(typeof(AbpSelectTagHelperService))] public class MySelectTagHelperService : AbpSelectTagHelperService
I dont think I got ur point, do u mean something like below code?
will you able to provide the path for the specific file which you are refering us to override. Thanks in advance
Hello,
You can get the source code of LeptonX by using the below command, and you can customize it as per your requirements.
abp get-source Volo.LeptonTheme --version 7.3.1
Thanks, Anjali
Thanks for the update, you mean the provide command will give the source code for the leptonX demo site (https://x.leptontheme.com/) as well?