By default, basic authentication is enabled. The settings are configured in the Consent HTTP Servlet Extension configuration.
Note:

All of these configuration changes require the Consent servlet to be reloaded before they can take effect. To do this, see the last step.

  • To disable basic authentication, use the following command.
    $ bin/dsconfig set-http-servlet-extension-prop \
      --extension-name Consent \
      --set basic-auth-enabled:false
  • To enable basic authentication, use the following command.
    $ bin/dsconfig set-http-servlet-extension-prop \
      --extension-name Consent \
      --set basic-auth-enabled:true
  • To configure an identity mapper for basic authentication, use the following command.
    $ bin/dsconfig set-http-servlet-extension-prop \
      --extension-name Consent \
      --set "identity-mapper:User ID Exact Match"
  • To restart the connection handler that hosts the Consent servlet, use the following commands.
    $ 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