This is a migrated thread and some comments may be shown as answers.

WCF Authentication ReportService

0 Answers 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mlzoll
Top achievements
Rank 1
mlzoll asked on 28 Sep 2010, 01:34 PM
Hello

For security reasons we want to authenticate our users on the WCF Telerik Reporting Service.
At first I thougt I can use the WCF-Configuration (web.config on server; IReportServiceClientFactory on client) to set
authentication settings e.g.:

web.config
<basicHttpBinding>
   <binding name="basicHttpBindingConfig1">
      <security mode="Transport">
         <transport clientCredentialType="Basic"></transport>
      </security>
</binding>
</basicHttpBinding>
"IReportServiceClientFactory"

public class CustomReportServiceClientFactory : IReportServiceClientFactory
    {
        public ReportServiceClient Create(Uri remoteAddress)
        {
            BasicHttpBinding basicHttpBinding = basicHttpBinding = new BasicHttpBinding(BasicHttpSecurityMode.Transport);
            ReportServiceClient client = new ReportServiceClient(basicHttpBinding, new EndpointAddress(remoteAddress));
            return client;
        }
    }

But I forgot the "webHttpBinding" form the ReportService ...
And I found no possibility to set the authentication settings for this on the client.

And because of the used WebHttpBinding are headers in the the SOAP header (with the configuration <message clientCredentialType="UserName"/> and a custom class UserNamePasswordValidator ClientCredential) not possible, or?

So I ask what are there for options for authentication?
Ideally I would like to add a header with a securty token (username + password) to all request to the server and validate it on server)

My development environment: Windows XP (SP3); VS2010; Silverlight 4.0; Reporting Q2 2010

Thank you

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
mlzoll
Top achievements
Rank 1
Share this question
or