wcf-security

Passing FormsAuthentication cookie to a WCF service

帅比萌擦擦* 提交于 2019-11-26 17:32:30
I have a website that talks to a remote WCF web service. Both use the same custom FormsAuthentication Provider. I would like to authenticate with the WCF service impersonating the user currently logged in the site. I already did this manually, using UserName client credentials but I need to know the user password. So, what works so fart is this: an authenticated user makes a request, I create a Service Client and set his credentials: serviceClient.ClientCredentials.UserName.UserName = username; serviceClient.ClientCredentials.UserName.Password = password; But what I really want is to pass the

how to enable WCF Session with wsHttpBidning with Transport only Security

一曲冷凌霜 提交于 2019-11-26 16:37:49
问题 I have a WCF Service currently deployed with basicHttpBindings and SSL enabled. But now i need to enable wcf sessions(not asp sessions) so i moved service to wsHttpBidnings but sessions are not enabled I have set [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)] But when i set SessionMode=SessionMode.Required on service contract it says Contract requires Session, but Binding 'WSHttpBinding' doesn't support it or isn't configured properly to support it. following is the

Signing SOAP messages using X.509 certificate from WCF service to Java webservice

拟墨画扇 提交于 2019-11-26 16:18:55
问题 It's my first question over the web. Hope it will make sense. I have seen several blogs related to this issue over the Web, and I have tried few of the ideas presented in them with no success. Here's my situation: I have a web App calling a WCF web service which then call a Java web service. They are all on different servers. The call between the WCF web service to the java web service is not over https as the certificate will be enough to identify the caller (Message security therefore).

How can I use WCF with only basichttpbinding, SSL and Basic Authentication in IIS?

我只是一个虾纸丫 提交于 2019-11-26 15:27:49
问题 Is it possible to setup a WCF service with SSL and Basic Authentication in IIS using only BasicHttpBinding-binding? (I can’t use the wsHttpBinding-binding) The site is hosted on IIS 7, with the following authentication set up: - Anonymous access: off - Basic authentication: on - Integrated Windows authentication: off !! Service Config: <services> <service name="NameSpace.SomeService"> <host> <baseAddresses> <add baseAddress="https://hostname/SomeService/" /> </baseAddresses> </host> <!--

Authentication Service using WCF

三世轮回 提交于 2019-11-26 14:55:10
问题 I have a custom MembershipProvider as shown below. It validate user name and password against Active Directory. I would like to make this as an “authentication service”. This should work even if the client uses forms authentication or windows authentication. There is a WCF “HR Service” which is providing employee information. The “HR UI” website is using “HR Service” WCF service. Now we need to ensure that any client using the “HR Service” should be authenticated using “authentication service

WCF Error “This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case”

此生再无相见时 提交于 2019-11-26 10:32:18
I'm having a problem using a WCF call from a Windows service to my WCF service running on my web server. This call has been working for a number of weeks, but then stopped working all of a sudden, and has not worked since. The exception I'm getting is: General Error Occurred System.ServiceModel.CommunicationException: An error occurred while making the HTTP request and then it says This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server

What is the difference between a WCF Service Application and a WCF Service Library?

谁说我不能喝 提交于 2019-11-26 07:57:59
问题 I am developing a WCF web service and I used the WCF Service Application template to do that. Does creating a \"WCF Service Application\" fulfill this requirement? What are the advantage of creating a WCF Service Library over a WCF Service Application? 回答1: A service application includes a website host already setup for you. A service library is a library of services that a host can reference and startup. If you start with a service library (recommended) you can then choose any host you wish

Passing FormsAuthentication cookie to a WCF service

泪湿孤枕 提交于 2019-11-26 05:27:54
问题 I have a website that talks to a remote WCF web service. Both use the same custom FormsAuthentication Provider. I would like to authenticate with the WCF service impersonating the user currently logged in the site. I already did this manually, using UserName client credentials but I need to know the user password. So, what works so fart is this: an authenticated user makes a request, I create a Service Client and set his credentials: serviceClient.ClientCredentials.UserName.UserName =

WCF Error “This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case”

徘徊边缘 提交于 2019-11-26 02:11:31
问题 I\'m having a problem using a WCF call from a Windows service to my WCF service running on my web server. This call has been working for a number of weeks, but then stopped working all of a sudden, and has not worked since. The exception I\'m getting is: General Error Occurred System.ServiceModel.CommunicationException: An error occurred while making the HTTP request and then it says This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the