| Invert |
Donald Gray
07/08/2010 04:46
Setting credentials in ReportService.svc
Hi,
I am wondering how you set the credentials in the ReportService: MsReportServiceRemote class?
When the user logs into my site they use their SQL login, I store this for accessing various different services and want to use it when they try to run reports. How can this be done? I do not want the user to need to enter their credentials again.
I have added an override of the SetDataSourcesCredentials method in the service, this causes the 'Change Credentials' box to open on the report viewer. It works once the user clicks the 'Set Credentials' button.
This is not what I want, I would like to know how to set the credentials in the service so that it uses them and doesn't open up the 'Change Credentials' box first.
I have also tried an override of the LoadReport method and setting ReportExecutionInfo.CredentialsRequired = false but this does nothing.
Thanks.
|
Donald Gray
07/08/2010 05:20
Setting credentials in ReportService.svc
I figured this out.
Within my override of the LoadReport method I call the SetDataSourceCredentials() method, passing in my own credentials.
|
Vitaliy Korney
07/09/2010 02:14
Setting credentials in ReportService.svc
Hello,
We are glad that you have solved this problem.
Best regards,
Vitaly Korney
Perpetuum Software Team
|