This documentation is archived and is not being maintained.

<tokenIssuer> Element (WSE for Microsoft .NET) (2)

Specifies the settings for a security token service.

<microsoft.web.services2> Element

  <autoIssueSecurityContextToken enabled="true">



Child Elements

Element Description

<autoIssueSecurityContextToken> Element

Optional element. Specifies whether a Web service automatically issues SecurityContextToken security tokens.

<serverToken> Element

Optional element. Specifies the security token used to sign the response for a security token request.

<ttlInSeconds> Element

Optional element. Specifes, in seconds, how long issued SecurityContextToken security tokens are valid.

Parent Elements

Element Description

<microsoft.web.services2> Element

Controls the configuration options defined by WSE.

Use the <tokenIssuer> element when you issue security tokens. WSE allows you to issue SecurityContextToken security tokens just by adding configuration elements and to issue other security tokens by creating a class and adding configuration elements. When you issue SecurityContextToken security tokens, use the required <serverToken> Element element and the optional <autoIssueSecurityContextToken> Element and <ttlInSeconds> Element elements. For more details about issuing security tokens, see Issuing Security Tokens.

Before adding the <tokenIssuer> element to a configuration file, you must add the microsoft.web.services2 configuration section handler to the configuration file. For details about adding the microsoft.web.services2 configuration section handler, see <section> Element (WSE for Microsoft .NET).

The following code example specifies an X509SecurityToken with a specific key to sign the responses for security token requests.

<?xml version="1.0" encoding="utf-8"?>
        <KeyInfo xmlns="">
            <wsse:KeyIdentifier ValueType="">