Create Security Context Token Assertion
gateway90
The
Create Security Context Token
assertion is used to process an inbound message containing a RequestSecurityToken (RST) request. It will issue a Security Context Token (SCT), establish a secure conversation session, and then save the session. The secure conversation session is mapped by the identifier defined in the SCT.Context Variable Created by This Assertion
The generated Security Context Token is stored in the
${<prefix>.issuedSCT}
context variable. This variable is made available to the Build RSTR SOAP Response Assertion to create an RSTR response message. For more information, see Working with the Security Token Service.The following is an example of an SCT in the
${issuedSCT}
context variable:<sc:SecurityContextToken wsu:Id="uuid-86acfd31-dcaf-4b4f-9b45-8d79e3c63cba-64" xmlns:sc="..."> <sc:Identifier>urn:uuid:...</sc:Identifier> </sc:SecurityContextToken>
This assertion assumes that credentials have been provided and are authenticated in the request.
To learn about selecting the target message for this assertion, see Select a Target Message. The target message should contain a user's credentials for request authorization and security context creation.
Using the Assertion
- Do one of the following:
- To add the assertion to the Policy Development window, see Add an Assertion.
- To change the configuration of an existing assertion, proceed to step 2 below.
- Right-clickin the policy window and select<target>:Create Security Context TokenSecurity Context Token Creator Propertiesor double-click the assertion in the policy window. The assertion properties are displayed.
- Configure the properties as follows:Security Context Token Creator settingsSettingDescriptionKey SizeSelect the minimum key size to use. If set to "Automatic", then the key size will be set to the same key size defined in the RST Request SOAP message, which is the target message set by this assertion. If set to "Automatic" and no key size is defined in the RST Request SOAP message, then the default key size256is used.If the request value is larger than the configured size, then the value from the request will be used.Token LifetimeSpecify the length of time since issuing before the token expires. This defines the lifetime of a security context session. This setting is available only if you are not using the system default for token lifetime.Use System DefaultFor the token lifetime, use the value defined in the cluster propertywss.secureConversation.defaultSessionDuration. The default is2hours.Variable PrefixEnter a prefix that will be added to the context variable created by this assertion. This prefix will ensure uniqueness and will prevent the variables from overwriting each other when multiple instances of this assertion appear in a policy.The default variable prefix issctBuilder.For an explanation of the validation messages displayed, see Context Variable Validation.
- Click [OK].