Posted 2 August 2020, 11:37 pm EST
To access my SSRS report i need to provide username and password, how can provide credentials to get SSRS report.
Forums Home / Wijmo / General Discussion
Posted by: venkats1208 on 2 August 2020, 11:37 pm EST
Posted 2 August 2020, 11:37 pm EST
To access my SSRS report i need to provide username and password, how can provide credentials to get SSRS report.
Posted 3 August 2020, 5:47 pm EST
Hi Venkat,
You can provided the username/password in the Startup.cs file of the WebApi application you are using to host the SSRS report. In the Configuration method, use the System.Net.NetworkCredential class to send username/password. Please refer to the code below and the sample attached.
string ssrsHost = "<url where SSRS is hosted>";
var user = "<username>";
var password = "<password>";
app.UseReportProviders().AddSsrsReportHost("samplessrs", ssrsHost, new System.Net.NetworkCredential(user, password));
Regards,
Ashwin