UsernameToken with password text, nonce, and created timestamp over HTTP
This policy requires that a client must send a UsernameToken with clear text password, nonce, and created timestamp. Transport security is not required. This simple policy is only suitable if password confidentiality is not a concern or is provided by other means. This policy can be used in a pre-production environment for testing purposes.
The following policy shows a UsernameToken with password text,
nonce, and created timestamp over HTTP:
<wsp:Policy wsu:Id="UsernameTokenOverHTTP">
<sp:SupportingTokens>
<wsp:Policy>
<sp:UsernameToken
sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">
<wsp:Policy>
<sp13:Created />
<sp13:Nonce />
<sp:WssUsernameToken11 />
</wsp:Policy>
</sp:UsernameToken>
</wsp:Policy>
</sp:SupportingTokens>
</wsp:Policy>
The namespaces used in this example are:
- xmlns:wsp="http://www.w3.org/ns/ws-policy"
- xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
- xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"