# Configuring Rules for Single Sign On ## Configuring Single Sign-on
<Mazinger> <**Application** cmdLine = '.\*jconsole$'> <**Component** class = 'sun.tools.jconsole.JConsole' title = 'Java Monitoring & Management Console' name = 'frame0'> <**Component** class = 'sun.tools.jconsole.JConsole\\$FixedJRootPane'> <**Component** class = 'javax.swing.JPanel' name = 'null.glassPane' /> <**Component** class = 'javax.swing.JLayeredPane' name = 'null.layeredPane'> <**Component** class = 'javax.swing.JPanel' name = 'null.contentPane'> .... <**Component** class = 'javax.swing.JPasswordField' text ='' ref-as = 'password'> | Patterns to be match |
<**Action** type='script' event='onFocus'> <! \[CDATA \[ var account = secretStore.getAccount('soffid'); var password = secretStore.getPassword('soffid', account); debug ('user =' + account); debug ('password =' + password); password.setText (secretStore.getSecret ('password')); \]\]> </ **Action**> | The action you want to be executed |
.... |
cmdLine | Regular expression to match the command line. |
class | Regular expression to validate against the kind of visual component, either a Java class or a window class. |
name | Regular expression to match the name of the component. Applies only to Java components. |
text | Regular expression to match the content of a text component |
title | Regular expression to match the title of a java component. |
dlgId | Regular expression to match window ID dialog on Windows component. |
optional | If the value is true, the presence of the component is not considered critical to trigger actions associated dialogue. |
check | When the check attribute has the value “**partial**”, the matcher engine considers the user interface component matches the XML pattern even when it has one or more children components that are not declared at the XML pattern. If you specify the value **full** value or the attribute is missing, the component will not match the pattern if it has children are components not specified in XML descriptor. Thus, the rule will be ignored. |
ref-as | Specifies a name of a ECMA-Script variable that will refer to this component. |
event | Name of the event that will trigger the action. In the current version must be set to "onFocus" |
type | Indicates the type of action. Can have the following values: **setText:** Assigns a text value to the owner component. **script.** Run the specified script. |
text | Text to assign, for setText actions. |
repeat | If set to true, the action will be executed as many times as necessary. Otherwise, it will only run once per process. |
delay | Time (in seconds) that must be elapsed before the action is executed again. |
<Mazinger> <**WebApplication** url = '[https://www.caib.es](https://www.caib.es/). \*' title = 'Government of the Balearic Islands'> <**Form** action = "j\_security\_check"> <**Input** name="j\_username" ref-as="u"/> <**Input** name="j\_password" type="password" ref-as="p"/> <**Input** type="Submit" ref-as="b" /> | Patterns to be match |
<**Action** Type='script' event='onLoad'> <! \[CDATA \[ debug('User =' + secretStore.getSecret ('user')); debug ('password =' + secretStore.getSecret ('password')); u.setAttribute ('value' secretStore.getSecret ('user')); p.setAttribute ('value' secretStore.getSecret ('password')); b.click(); \]\]> </**Action**> | Action you want to be executed |
</**Form**> </**WebApplication**> </Mazinger> |
url | Regular expression to match the page address |
title | Regular expression to match the title of the page |
content | Regular expression to match the HTML content of the page |
id | Regular expression to match the ID attribute of the element |
name | Regular expression to match the element name |
method | Regular expression to match the form element's method attribute. |
action | Regular expression to match the form element's action attribute. |
ref-as | Specifies a name of a ECMA-Script variable that will refer to this form. |
optional | A value of **true** indicates that its presence is not necessary for the execution of actions. |
id | Regular expression to match the ID attribute of the element |
name | Regular expression to match the element name |
type | Regular expression to match the input type |
value | Regular expression to match the input value. |
ref-as | Specifies a name of a ECMA-Script variable that will refer to this form. |
optional | A value of **true** indicates that its presence is not necessary for the execution of actions. |
event | Name of the event that will trigger the action. In the current version must be set to "onFocus" |
type | Indicates the type of action. Can have the following values: **setText:** Not supported **script.** Run the specified script. |
repeat | If set to true, the action will be executed as many times as necessary. Otherwise, it will only run once per process. |
delay | Time (in seconds) that must be elapsed before the action is executed again. |
Attribute | Value |
---|---|
url | The base url to use. Include the protocol and port number when needed. Any BASIC, NTLM or Kerberos authentication requested by that server will be automatically answered with the credentials present in the password vault |
system | The ESSO will send any credential that the user has in that system. Other credentials will be ignored |
domain | This is an optional attribute. It's required when trying to use Kerberos or NTLM authentication if the account name does not contain the domain name part. If the account contains the domain name, this attribute should not be present. |