Specifying the policy result

To specify the policy result, you set attributes on the policy object. The options are as follows:

  • policy.Locked (true or false)
  • policy.Reason (“Your custom message.”)
  • policy.RequiredLevel (1=normal, 2=strong authentication)

For example, if you want to force strong authentication, you set the policy.RequiredLevel=2. If you want to block access to the application, you set the policy.Locked = true. If policy.Reason is not specified, the default value is “Application is not currently available” and the user will see this message when launching the app.

The sample starter script uses policy.Locked and policy.RequiredLevel, but does not specify a policy.Reason.