Table of contents

Displaying a terms and conditions prompt

If you need users to accept terms and conditions before they use the web client, you can enable a dialog that prompts users to accept the terms and conditions before they can log in to the web client. For example, you might need to enable the prompt to comply with the Federal Information Security Management Act (FISMA) regulations.

About this task

When you configure the web client to display a terms and conditions prompt, you must specify the following information:
  • The header text for the dialog
  • The terms and conditions that the user must accept
  • The prompt that the user must click to acknowledge that they accept the terms and conditions

Procedure

  1. Log in to your Red Hat® OpenShift® cluster as a project administrator:
    oc login OpenShift_URL:port
  2. Create the login-dialog.json configuration file:
    Property Description
    enabled Set enabled to true to enable the dialog.
    For example:
    "enabled": true,

    Valid values: true or false

    headerText Specify the text to display as the header in the dialog.
    For example:
    "headerText": "Terms of use",

    Use standard JSON string format.

    dialogText Specify the terms and conditions that the user must agree to before they can access the web client.
    For example:
    "dialogText": "The terms and conditions of use that your user must accept.",

    Use standard JSON string format.

    acceptText Specify the text that the user must click to acknowledge that they agree to the terms and conditions.
    For example:
    "acceptText": "I understand and accept the terms",

    Use standard JSON string format.

  3. Copy the login-dialog.json file into the config directory:
    oc cp login-dialog.json $(oc get pod -n namespace -l component=usermgmt | tail -1 | cut -f1 -d\ ):/user-home/_global_/config/
    Replace namespace with your project namespace.