<autoIssueSecurityContextToken> Element

Specifies whether a Web service automatically issues SecurityContextToken security tokens.

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

<autoIssueSecurityContextToken enabled="false" />

Attributes and Elements

Attributes

Attribute Description

enabled

Required attribute. true if the Web service should automatically issue SecurityContextToken security tokens;otherwise, false. The default value is false.

Child Elements

None

Parent Elements

Element Description

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

Specifies the settings for a security token service.

Example

The following code example enables a Web service to automatically issue SecurityContextToken security tokens to its clients.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <microsoft.web.services2>
    <tokenIssuer>
      <autoIssueSecurityContextToken enabled="true" />
      <serverToken> 
        <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
          <wsse:SecurityTokenReference>
            <wsse:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">bBwPfItvKp3b6TNDq+14qs58VJQ=</wsse:KeyIdentifier>
          </wsse:SecurityTokenReference>
        </KeyInfo> 
      </serverToken> 
    </tokenIssuer> 
  </microsoft.web.services2>
</configuration>

See Also

Other Resources

Issuing Security Tokens