I have a ReportService.svc that is called from clients that are either passing credentials using Windows or Basic auth depending on their browser. How can I support both Windows and Basic auth calls to the ReportService.svc from Telerik Reporting for Silverlight?
What you can do is create two services, the first will handle the Windows authentication and the second will handle the Basic authentication. If Windows authentication fails you can fallback to Basic authentication.
One service with BasicHttpBinding cannot support multiple authentication mechanisms, because the ClientCredentialType is a single object and not a collection and the HttpClientCredentialType enumeration does not contain mixed modes.
Where do you suggest I handle the auth error at? I am using the Silverlight ReportViewer and it has the ReportServiceUri hardcoded.
answered on 27 Feb 2012, 02:42 PM
If you have two services you will need two clients for these services as well. If the first client raises an error you can try the second one. As for the ReportServiceUri - it is a public property with getter and setter, so it can be manipulated at any time. Here is the Reporting API Reference for the property.