Quantcast
Channel: Claims based access platform (CBA), code-named Geneva forum
Viewing all articles
Browse latest Browse all 2535

AD FS 2.0 failed for external domains for WCF

$
0
0

Hi all,

Following the tutorial for WCF with AD FS, so far I have got everything working with the main domain, codes as http://blogs.msdn.com/b/mcsuksoldev/archive/2011/08/17/federated-security-how-to-setup-and-call-a-wcf-service-secured-by-adfs-2-0.aspx

However, I found when I change codes from 

 var token = Token.GetToken(@"maindomain\testuser", "p@ssw0rd", "http://some.org/wcfservice/Service.svc", out requestTokenResponse);

to

 var token = Token.GetToken(@"externaldomain\testuser", "p@ssw0rd", "http://someorg/wcfservice/Service.svc", out requestTokenResponse);
   

then I got error to say unable to validate user, the exact same error as if I put wrong password for the main domain user.  And I have double / triple check to make sure the user name and password for the external domain user is good.  Also, I have tried to login a AD FS 2.0 protected web site (not WCF) though using the external user name and password to make sure AD FS works.  So, the question here is that how to make AD FS aware of external users for WCF client?  Or is that even possible?

Thanks a million!

Ning




Viewing all articles
Browse latest Browse all 2535


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>