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