<remove> Element for <securityTokenManager>
Removes a user-supplied custom security token manager for an XML-based security token to the application domain.
<microsoft.web.services3> Element
<security> Element
<securityTokenManager> Element
<remove localName namespace />
Attributes and Elements
Attributes
Attribute | Description |
---|---|
localName |
Required attribute. The security token type minus the XML namespace prefix, as it appears in a SOAP message. |
namespace |
Required attribute. The XML qualified name in which the name specified in the localName attribute is a member of. |
Child Elements
None.
Parent Elements
Element | Description |
---|---|
Specifies the user-supplied custom security token managers for XML-based security tokens within an application domain. |
Remarks
When a security token is received by WSE that it does not natively support, WSE looks to see if a security token manager has been configured to handle that type of security token. WSE looks for a <add> Element for <securityTokenManager> element with a localName attribute that matches the element representing the security token within the WS-Security SOAP header. When there is a match, WSE calls the type specified in the type attribute of the <add> element to handle the security token.
Similarly, the <add> element can be used to register security token managers that override the default behavior of natively supported security tokens. For example, say you are using UsernameToken security tokens and you do not want WSE to authenticate the user name and password against a Windows user account. You can create and register a custom security token manager that authenticates the user name using a database of user name and password combinations. For more information about using UsernameToken security tokens, see How to: Verify Digital Signatures of SOAP Messages Signed Using a User Name and Password.
Before adding the <remove> element to a configuration file, you must add the microsoft.web.services3 configuration section handler to the configuration file. For information about adding the microsoft.web.services3 configuration section handler, see <section> Element.
Example
The following code example removes any custom security token managers for the UsernameToken security token for an application domain.
<configuration>
<microsoft.web.services3>
<security>
<securityTokenManager>
<remove
localName="UsernameToken"
namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
</securityTokenManager>
</security>
</microsoft.web.services3>
</configuration>
See Also
Tasks
How to: Create a Security Token Manager for a Custom Security Token