Use Case for User Name Token Authentication

This is the first task of the use case. This is a use case to demonstrate the use of the command-line interface where in you want to deploy the User Name Token Authentication governance control.

Procedure

  1. Navigate to <TIBCO_HOME>/ogp/1.2/samples/UsernameTokenAuthentication and open the data file that corresponds to User Name Token Authentication.
  2. Under the element, <rule:StandaloneRule>, enter the appropriate values for the <name>, <description>, and <template> parameters. In this case, you will be creating a User Name Token Authentication governance control.
    <description>Rule created via CLI</description> 
    <name>UsernameTokenAuthenicationCLI-WSSSignature</name> 
    <template localPart="UsernameTokenAuthentication" namespace="http://xsd.tns.tibco.com/governance/rule/template/2010"/> <templateVersion>1.0.0</templateVersion>
  3. Under the parameter group, AuthenticationByJAAS, provide values for the security token, type of the login module, and name of the resource instance. The following code snippet serves as an example:
    <ParamGroup> 
       <name>AuthenticationByJAAS</name> 
       <Param> 
          <name>SecurityToken</name> 
          <value>UsernameToken</value> 
       </Param> 
       <Param>
          <name>loginModuleType</name> 
          <value>SharedResourceLoginModule</value> 
       </Param> 
       <Param> 
           <name>JaasExtensionLoginModule</name> 
           <value>JaasExtensionLoginModule</value> 
       </Param> 
       <Param> 
           <name>Asp</name> 
           <value>ldapAspRI</value> 
       </Param> 
    </ParamGroup>
  4. Specify the object groups that get affected by the governance control.
    <ParamGroup> 
       <name>Default</name> 
       <Param> 
          <name>ObjectGroups</name> 
          <value>MCR-DAA1-SoapService</value>
       </Param> 
    </ParamGroup>
  5. Save the file.