啟用同意聲明橫幅

私有雲 4.18.05 版本

您可以在使用者首次存取 Edge UI 時,顯示同意聲明橫幅。同意聲明橫幅會顯示 HTML 格式的文字,以及使用者選擇繼續登入畫面的按鈕。例如:

如何新增同意聲明橫幅:

  1. 在編輯器中開啟 ui.properties 檔案。如果檔案不存在,請建立以下檔案:
    vi /opt/apigee/customer/application/ui.properties
  2. 設定下列屬性:
    # Enable the consent banner:
    conf_apigee-base_apigee.feature.enableconsentbanner="true"
    # Set the button text:
    conf_apigee-base_apigee.consentbanner.buttoncaption="I Agree"
    # Set the HTML text:
    conf_apigee-base_apigee.consentbanner.body="<h1>Notice and Consent Banner</h1>
    <div><p>Enter your consent text here.</p></div>"
  3. 儲存變更。
  4. 重新啟動 Edge UI:
    /opt/apigee/apigee-service/bin/apigee-service edge-ui restart

下次在瀏覽器中開啟 Edge UI 時,您必須接受同意聲明,才能登入。