51.7 Enabling the REST Client to Specify a Tenant Name

You can enable the REST client to specify the tenant name.

See "Specifying the Tenant Name in the Header" in the Oracle Fusion Middleware Developer's Guide for Oracle Access Management.

To enable the REST client:

  1. Navigate to the following directory:
    ~/OAM-Domain-dir/bin
    
  2. In a text editor, add the following line to the ./startManagedWebLogic.sh file:
    MT_OPTION="-Doracle.multitenant.headername=MY-MT-NAME"
    JAVA_OPTIONS="${MY_OPTIONS} ${JAVA_OPTIONS}" export JAVA_OPTIONS
    

    Note:

    If you do not specify the JVM option, the server will expect the client to use the default header name, X-ID-TENANT-NAME.

  3. Save the file.