wcf-security

Open Source Alternatives to WCF [closed]

拥有回忆 提交于 2019-12-05 16:16:57
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Could you tell me the open source alternatives to WCF?? I'm a newbie and just started using WCF. I wanted to know about the

How to inject an object into a WCF validator class

99封情书 提交于 2019-12-05 15:16:36
问题 Following up on using dependency injection for WCF services, is there any way of using DI for WCF validators , so that one could do this: public class DIValidator : UserNamePasswordValidator { private readonly IService service; [Inject] public DIValidator(IService service) { this.service = service; } public override void Validate(string userName, string password) { service.Login(userName, password); } } EDIT - I tried to apply Dzmitry's advice to my custom behaviour extension, since my

Why doesn't my WCF endpoint throw a Max Clock Skew exception?

一笑奈何 提交于 2019-12-05 08:26:21
With almost all of the (secure) WCF service endpoints in my application, if the client's system clock is set too far in the future or past, I get an exception from WCFs Clock Skew mechanism (described here: http://www.danrigsby.com/blog/index.php/2008/08/26/changing-the-default-clock-skew-in-wcf/ ). However the one endpoint where my Login() method is implemented never throws this exception even though it has transport security enabled (naturally no credentials are required for it). Why isn't the "Clock Skew mechanism" working for this endpoint? Maybe it's because clientCredentialType is set to

Is it possible to call Dynamics CRM 2011 late-bound WCF Organization service without the SDK - straight customized binding?

為{幸葍}努か 提交于 2019-12-05 08:21:03
问题 I'm trying to implement a pure WCF scenario where I want to call Dynamics CRM WCF service without relying on the SDK helper classes. Basically, I would like to implement federated authentication against Dynamics CRM 2011 using only native WCF support from the .net framework. The reason I'm doing this is that I would like to port this scenario later-on to BizTalk. I've successfully generated proxy classes with SvcUtil, but the part of the policies and security assertions are not compatible

WCF - Disabling security in nettcpbinding (c#)

為{幸葍}努か 提交于 2019-12-05 07:59:45
I'm trying to make a self hosted WCF app that uses nettcpbinding but works in an environment without a domain. It's just two regular windows pc's, one is the server and the other one will be the client. The problem with this is that when I try to get the client to connect it's rejected because of the security settings. Can you please point me in the right direction as to how I can get this scenario to work? Should I (if possible) disable security? Is there another (hopefully simple) way to accomplish this? Regards, Daniel If you'd like to disable security for testing purposes, in the App

How can I ensure that IsInRole checks are not using cached credentials

放肆的年华 提交于 2019-12-05 07:46:14
I have a WPF client that connects to a WCF service, and I want to lock down some of the functionality so that only certain users can perform certain actions. The WCF service impersonates the client user when executing service methods. The OS is Windows XP. I was reading this question as part of my investigation into the best way to apply user roles to features in my application (I want to assign users to AD security groups, and then check IsInRole), and am worried that cached permissions will allow users who have had their permissions reduced to access functionality they no longer have

How to save user object in WCF

风流意气都作罢 提交于 2019-12-05 07:08:12
I have a service that uses a custom "UserNamePasswordValidator" and need to save the validated user object to be able to retrieve it later in the service. How can I do this? Or how can I access the credentials of the user later in the service? /Viktor The short answer is that the most correct option is to create an IPrincipal instance that represents the authenticated user and put it on Thread.CurrentPrincipal . All code running on the same thread later in the service will be able to access the authenticated user through Thread.CurrentPrincipal. This is the standard way of dealing with

Azure WCF Service with Azure Active Directory Authentication

故事扮演 提交于 2019-12-05 02:36:37
问题 I know this question seems similar to other son here, but I have tried the answers posted Here: Securing WCF 4.5 service using Azure ACS 2.0 And Here: Federated authentication (single-sign-on) for a WCF REST/HTML-service on Azure Ans neither seem to be relevant. Here is what I have so far. An azure cloud service with various worker roles, and a WCF web role with REST and SOAP Endpoints An azure active directory account with a couple users ACS namespace. The WCF service will be used by a

WCF Error : 'It is likely that certificate 'my cert' may not have a private key that is capable of key exchange

微笑、不失礼 提交于 2019-12-04 22:42:44
I have a WCF service I'm trying to host on our production web server (IIS6). I've set the web up and tied our cert to the web. When I try to browse to the service url, I receive the following error in the event log : The exception message is: It is likely that certificate 'CN= .mydomain, OU=Secure Link SSL Wildcard, OU=I.T., C=US' may not have a private key that is capable of key exchange or the process may not have access rights for the private key. Please see inner exception for detail.. ---> System.ArgumentException: It is likely that certificate 'CN= .mydomain.com, OU=Secure Link SSL

WCF Service Impersonation

大憨熊 提交于 2019-12-04 18:46:38
Good Day Everyone... Apparently, I'm not setting-up impersonation correctly for my WCF service. I do NOT want to set security on a method-by-method basis (in the actual code-behind). The service (at the moment) is open to be called by everyone on the intranet. So my questions are… Q: What web-config tags am I missing? Q: What do I need to change in the web-config to make impersonation work? The Service Web.config Looks Like... <configuration> <system.web> <authorization> <allow users="?"/> </authorization> <authentication mode="Windows"/> <identity impersonate="true" userName="MyDomain\MyUser"