.net - ADFS exception "AddressFilter mismatch at the EndpointDispatcher" -


i have adfs configured , running in internal network on ip 192.168.0.200 console application should able authenticate against adfs instance external network. in order achieve have configured nat rule follows: externaldomain.com:9443 -> 192.168.0.200:443

console app calls adfs way:

    string relyingpartyid = @"https://localhost:8099/";     string adfsendpoint = @"https://externaldomain.com:9443/adfs/services/trust/13/usernamemixed";      var binding2 = new usernamewstrustbinding(securitymode.transportwithmessagecredential)         {             clientcredentialtype = httpclientcredentialtype.none         };          var trustchannelfactory2 = new wstrustchannelfactory(binding2, new endpointaddress(adfsendpoint))         {             trustversion = trustversion.wstrust13         };          var channelcredentials2 = trustchannelfactory2.credentials;         channelcredentials2.username.username = @"user";         channelcredentials2.username.password = @"password";         channelcredentials2.supportinteractive = false;          var tokenclient2 = (wstrustchannel)trustchannelfactory2.createchannel();          var rst2 = new requestsecuritytoken(requesttypes.issue, keytypes.bearer)         {             appliesto = new endpointreference(relyingpartyid),             replyto = relyingpartyid,             tokentype = "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#samlv2.0"         };          securitytoken token = tokenclient2.issue(rst2); 

adfs crashes exception: "the message 'https://externaldomain.com:9443/adfs/services/trust/13/usernamemixed' cannot processed @ receiver, due addressfilter mismatch @ endpointdispatcher. check sender , receiver's endpointaddresses agree."

if switch off "usernamemixed" in adfs config - replies correct - endpoint not found. assume problem adfs wcf endpoint configuration. suggest how deal it?

one more note, test web application (also running on external web server) can authenticate (using adfs log in page) against adfs instance without problems.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -