Unplanned
Last Updated: 27 May 2024 11:46 by ADMIN
Ed
Created on: 01 Sep 2023 14:39
Type: Bug Report
1
The Native Blazor Viewer VS item template breaks applications that have authentication and authorization set up.

Running the Native Blazor Viewer page VS item template in a project that has authentication and authorization configured, breaks the application.

If the application contains an authorize attribute in its _Imports.razor file, the Reporting-related usings are placed in the middle of it.

@attribute [Authorize@using Telerik.Blazor
@using Telerik.Blazor.Components
@using Telerik.ReportViewer.BlazorNative
]

Additionally, the declaration that introduces the EndpointMiddleware in the Program.cs file of the application is added directly after the UseRouting declaration. This breaks applications that already have the UseAuthentication and UseAuthorization declarations because the UseAuthorization call needs to appear between the UseRouting and UseEndpoints calls.

app.UseRouting();
app.UseEndpoints(endpoints =>
{
	endpoints.MapControllers();
	// ... 
});

app.UseAuthentication();
app.UseAuthorization();

0 comments