wcf-security

WCF transport security: socket connection was aborted

会有一股神秘感。 提交于 2020-08-10 17:42:09
问题 I have a problem in getting transport security to work. I have 2 services (A & B) running in the same server. service A will call service B to perform some task. Without any security, I can communicate just fine. But when I turn on transport security with the following settings: security mode = transport TransportClientCredentialType = Windows ProtectionLevel = EncryptAndSign I got error when service A calls service B: System.ServiceModel.CommunicationException: The socket connection was

WCF transport security: socket connection was aborted

Deadly 提交于 2020-08-10 17:41:13
问题 I have a problem in getting transport security to work. I have 2 services (A & B) running in the same server. service A will call service B to perform some task. Without any security, I can communicate just fine. But when I turn on transport security with the following settings: security mode = transport TransportClientCredentialType = Windows ProtectionLevel = EncryptAndSign I got error when service A calls service B: System.ServiceModel.CommunicationException: The socket connection was

setting cookies within a wcf service

☆樱花仙子☆ 提交于 2020-05-14 09:01:32
问题 I have a asp mvc application consuming wcf rest services (all on the same box). For authentication calls, I am trying to set cookies inside a wcf rest service. Code on the client side - HttpResponseMessage resp; HttpClient client = new HttpClient("http://localhost/auth/login/"); resp = client.Get(); In the webservice I just use FormsAuthentication to set an authcookie. HttpCookie authCookie = FormsAuthentication.GetAuthCookie("foo", false); HttpContext.Current.Response.Cookies.Add(authCookie)

Intermittent '401: Unauthorized' exceptions from server

泪湿孤枕 提交于 2020-02-25 05:30:07
问题 I have a web service that is hosted in a clustered environment. The web application that is calling this service is also hosted in a clustered environment, but on a different set of IIS6 servers. Hence, the application servers are appserv1 and appserv2 and the service servers are svcserv1 and svcserv2. We don't control which servers are accessed since we typically just refer to them as either appserv or svcserv, respectively. The service is a WCF Service but has been created to be compatible

Intermittent '401: Unauthorized' exceptions from server

亡梦爱人 提交于 2020-02-25 05:29:07
问题 I have a web service that is hosted in a clustered environment. The web application that is calling this service is also hosted in a clustered environment, but on a different set of IIS6 servers. Hence, the application servers are appserv1 and appserv2 and the service servers are svcserv1 and svcserv2. We don't control which servers are accessed since we typically just refer to them as either appserv or svcserv, respectively. The service is a WCF Service but has been created to be compatible

WCF Identity definition in clustered environment

心已入冬 提交于 2020-02-05 07:57:12
问题 I apologize in advance for the length of this question, but I wanted to be sure to provide complete information as I have been researching it for weeks. As a followup to this question on WCF authorization errors, I'm trying to determine how to specify the SPN (or should this be a UPN?) for the service. My issue is currently that when attempting to contact the service I go through a load balancer. The load balancer alternately sends me to one of two servers, svcserv1 or svcserv2. I have not

WCF client security header error “An invalid security token was provided”

落花浮王杯 提交于 2020-02-02 06:22:50
问题 According to our provider we need to send this kind of Header: <soapenv:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss- wssecurity-secext-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-12" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:Username>string</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">string<

WCF client security header error “An invalid security token was provided”

别说谁变了你拦得住时间么 提交于 2020-02-02 06:21:11
问题 According to our provider we need to send this kind of Header: <soapenv:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss- wssecurity-secext-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-12" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:Username>string</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">string<