Access policy development

You can use JavaScript to define and develop access policies. Access policies are used to decide whether a user is allowed access to a single sign-on federation. Access policies return a decision of either Allow, Deny, or Challenge. To write an access policy in JavaScript, use the Java classes, methods, and handlers that are supplied in ISAM. To view the Javadoc, use the local management interface.

  1. Click...

      System > File Downloads > federation > doc

  2. Access ISAM-javadoc.zip.

    Expand the Javadoc to view the relevant packages. For example:

    • com.ibm.security.access.policy
    • com.ibm.security.access.policy.decision
    • com.ibm.security.access.policy.saml20
    • com.ibm.security.access.policy.user

Allow

Use the allow decision to allow the single sign-on flow to continue if the requirement is met. The following example code shows a simple access policy that does not check any condition or requirement.

Another example is to allow the single sign-on flow to continue if the username equals testuser.

Challenge

Use the challenge decision to force the user to complete an action before the single sign-on flow can proceed. The action might be to be redirected to a service that is running out of the Security Verify Access appliance, or to an HTML page provided by Security Verify Access, or to a custom HTML page, by setting a pageid. When you redirect to an HTML page, we can set macros to display data on the page. The challenge decision can result in one of the following actions.

Deny

The Deny decision can result in one of the following actions.

Parent topic: Access policies