Skip to content

Instantly share code, notes, and snippets.

@chilcano
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chilcano/42aab5c3b67e9c667dba to your computer and use it in GitHub Desktop.
Save chilcano/42aab5c3b67e9c667dba to your computer and use it in GitHub Desktop.
Username Token over Transport - Security WS-Policy with HTTP support added
<wsp:Policy wsu:Id="UTOverTransport_with_HTTP"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
<wsp:ExactlyOne>
<wsp:All>
<!-- The 'sp:TransportBinding' section was removed to add HTTP support -->
<sp:SignedSupportingTokens
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:UsernameToken
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
</wsp:Policy>
</sp:SignedSupportingTokens>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment