I have already done it the way you have suggested but I wanted to check just in case :)
Thank you.
Hello,
How can I use ABP's hookToQuery() pattern with an InputSignal in Angular so that whenever its value is changed, the table should refresh itself? I could not see an example in tutorial documents. What should be the approach in the example below?
Thanks.
export class EagleComponent implements OnInit {
eagleId = input.required<string>();
public readonly listService = inject(ListService<GetListEagleDto>);
private eagleService = inject(EagleService);
eagles: PagedResultDto<EagleDto> | null = null;
ngOnInit(): void {
this.createQueryHook();
}
createQueryHook() {
const req = (query) => this.eagleService.getList({
...query,
eagleId: this.eagleId()
});
this.listService.hookToQuery(req).subscribe(res => {
this.eagles = res;
});
}
query() {
this.listService.get();
}
}
My case is exactly what you have described i.e. trying to import from an external project.
This works brilliantly, thanks maliming!
Hello,
How can I set CreatorId and CreationTime for an entity that is of type AuditedEntity? When I try to get the entity and set it directly like below, I get this error:
entity.CreatorId = user.Id;
The property 'Volo.Abp.Domain.Entities.Auditing.CreationAuditedEntity<TKey>.CreatorId' cannot be used in this context because the 'set' accessor is inaccessible
This is not the case for AuditedAggregateRoot. I can do the exact same thing without errors.
What should I do to set those properties?
Thank you.
Thanks!
Hi EngincanV,
The code that you provided for the method is not like this in my project and the new project that is created with the version 9.3.5 recently. The following is how the particular method is created:
private void ConfigureAuthentication(ServiceConfigurationContext context)
{
context.Services.ForwardIdentityAuthenticationForBearer(
OpenIddictValidationAspNetCoreDefaults.AuthenticationScheme
);
context.Services.Configure<AbpClaimsPrincipalFactoryOptions>(options =>
{
options.IsDynamicClaimsEnabled = true;
});
}
We do not have the code block that is given by the AI-Bot. Moreover, I have created a new project and it does not have this block neither.
Hello,
Our project underwent a penetration test. In the test result, it is suggested that our project needs to stop responding for tokens without an encryption algorithm. Which means that, it should not allow access for the tokens that have "alg": "none" in their headers.
How can we implement this in our project? Will it break anything related to ABP framework, authentication, authorization etc.?
Thanks!
Hello,
Is it possible to declare some enums to be skipped when generating proxies? That is, I do not want to create frontend proxies for them when I type "generate-proxy".
Thanks.
This works, thank you so much.