简体   繁体   中英

The message could not be processed because the action 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/SCT' is invalid or unrecognized.

Trying to setup STS with WCF Claims Aware. I am getting this message on the client:

Server Error in '/ClientWebsite' Application. The message could not be processed because the action 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/SCT' is invalid or unrecognized.

How do I resolve this?

Had the same problem with WIF 4.5 and ADFS 2.0 . I solved it by disabling the security context on the binding:

binding.Security.Message.EstablishSecurityContext = false;

I just had this issue and had to turn off security context on WCF bindings (Like what Andy Williams suggested). You need to turn them off on the bindings in both the client and the service.

Here's the config file if your WCF is IIS-hosted:

<ws2007FederationHttpBinding>
    <binding>
        <security mode="TransportWithMessageCredential">
            <message establishSecurityContext="false" />
        </security>
    </binding>
</ws2007FederationHttpBinding>

See this post: http://stack247.wordpress.com/2013/05/28/an-unsecured-or-incorrectly-secured-fault-was-received-from-the-other-party/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM