Basic authentication is enabled by default, and the settings are configured in the Consent HTTP Servlet Extension configuration.

  • Use the following command to disable basic authentication.
    $ bin/dsconfig set-http-servlet-extension-prop \
      --extension-name Consent \
      --set basic-auth-enabled:false
  • Use the following command to enable basic authentication.
    $ bin/dsconfig set-http-servlet-extension-prop \
      --extension-name Consent \
      --set basic-auth-enabled:true
  • Use the following command to configure an identity mapper for basic authentication.
    $ bin/dsconfig set-http-servlet-extension-prop \
      --extension-name Consent \
      --set "identity-mapper:User ID Exact Match"
  • All of these configuration changes require the Consent servlet to be reloaded before they can take effect. Use the following commands to restart the connection handler that hosts the Consent servlet.
    $ bin/dsconfig set-connection-handler-prop \
      --handler-name "HTTPS Connection Handler" \
      --set enabled:false
    $ bin/dsconfig set-connection-handler-prop \
      --handler-name "HTTPS Connection Handler" \
      --set enabled:true