https://github.com/aspnetzero/aspnet-zero-core/issues/5156
Can I get some update on this ?
I am currently trying to integrate Devexpress reporting. I have the latest version of Angular & .NetCore Abpzero.
I was able to integrate successfully and was able to pass tokens as well.
I was testing the Authorization by adding Authorize attribute like the below :
one at the Controller :
[AbpMvcAuthorize(AppPermissions.Pages_Tenants)]
public class CustomWebDocumentViewerController(IWebDocumentViewerMvcControllerService controllerService) : WebDocumentViewerController(controllerService), ITransientDependency
{
The other one at the report level :
[AbpMvcAuthorize(AppPermissions.Pages_Tenants)]
public partial class SampleReport : DevExpress.XtraReports.UI.XtraReport
If I don't pass a token, it throws an error which tells me it respects the Authentication.
But when i remove the Page_Tenants permission and try to access the report from Angular app, I am still able to access the report.
So it tells me the Authorization piece is not working or i have not implemented properly. I even tried with AbpAuthorize with the permission on the SampleReport class as well and that didn't work either.
I have created an App Service called
public class HostOrganizationUnitReportingAppService : DocuManageAppServiceBase, IHostOrganizationUnitReportingAppService
{
public async Task<OrganizationTenantReport> GetOrganizationTenantReport(OrganizationTenantReportInputDto input)
{
return new OrganizationTenantReport(1,"aa",4);
}
}
How do I use this as Data Source for my report?
I am working on it
Sorry its Angular and NET 7.0 v12.2.0.
Its getting displayed in the UI
Thank You very much, this solved my 1 week of pain and agony.
I am glad I asked this question, I wish i knew this was something that was released.
Yes I am able but I don't know where to read the query string and set the TenantID in the cookie so that the Tenant changes
That's incorrect. The previous implementation only needed ClientId , Client Secret and KeyVault Name.
The tenantId is the AzureADtenantID in case you are using Certificate Thumbprint.
I made the code to work on the release candidate by copying the code from previous project.
I have downloaded the Released version today, will let you know if i come across the same issue
No that didn't work as it was somehow expecting the AzureTenantId when I am not using certificate which was not in the case in the past. So I had to use the code from my other project and make it work.
Not sure what the old approach means here. are you asking not to use the release candidate or not to use azure key vault? i can't use azure key vault with the release candidate as there is no way of passing clientid & client secret