Azure Internal Role Endpoints and ACS


  • The above diagram is what I am trying to achieve.

    The scenario is:

    • Within a worker role I have a WCF service hosted on an internal endpoint.
    • This WCF service communicates with another WCF service hosted on a separate Azure deployment hosted on an external endpoint. This external WCF service is secured using ACS (I followed the sample at the MSDN site
    • As the sample demonstrates I am authenticating using a Username and Password - certificates are local in the project I have not used the Azure Certificate Store.
    • Finally I have a Console Application which simply calls the WCF service on the internal endpoint using a net.tcp binding.
    • When I call the service I get the following error:

    An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

    ACS10002: An error occurred while processing the SOAP body. ACS50000: There was an error issuing a token. ACS50001: Requested relying party realm

    The interesting thing is if I copy the code from the internal WCF service implementation and execute it direct from within the Console Application (i.e. call the external endpoint direct) everything works.

    Can anyone help please 

    2012年3月15日 21:12