Share via


<tokenIssuer> Element

Specifies the settings for a security token service.

<microsoft.web.services3> Element

<tokenIssuer>
  <serviceToken/>
  <statefulSecurityContextToken />
  <ttlInSeconds/> 
</tokenIssuer>

Attributes and Elements

Attributes

None

Child Elements

Element Description

<serviceToken> Element

Optional element. Specifies the security token that a security token service uses to encrypt the session key in the response for a security token request.

<statefulSecurityContextToken> Element

Optional element. Specifies whether stateful SecurityContextToken security tokens are used.

<ttlInSeconds> Element

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

Parent Elements

Element Description

<microsoft.web.services3> Element

Controls the configuration options defined by WSE.

Remarks

Use the <tokenIssuer> element when you issue security tokens. When you issue SecurityContextToken security tokens use the optional <ttlInSeconds> Element element to specify how long the issued security tokens are valid. For more details about issuing security tokens, see Establishing a Secure Conversation.

Before adding the <tokenIssuer> element to a configuration file, you must add the microsoft.web.services3 configuration section handler to the configuration file. For details about adding the microsoft.web.services3 configuration section handler, see <section> Element.

Example

The following code example sets the duration that issued SecurityContextToken security tokens issued are valid to 1 hour (3600 seconds).

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <microsoft.web.services3>
    <tokenIssuer>
      <ttlInSeconds value="3600" />
    </tokenIssuer>
  </microsoft.web.services3>
</configuration>

See Also

Reference

<ttlInSeconds> Element

Other Resources

Establishing a Secure Conversation