Enhancement Requests (ERs) introduced as a part of TIBCO ActiveMatrix BusinessWorks(TM) Plug-in for Apache Pulsar 5.0.0 HF-001

Enhancement Requests (ERs) introduced as a part of TIBCO ActiveMatrix BusinessWorks(TM) Plug-in for Apache Pulsar 5.0.0 HF-001

book

Article ID: KB0137704

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Apache Pulsar 5.0.0

Description

TIBCO ActiveMatrix BusinessWorks(TM) Plug-in for Apache Pulsar 5.0.0 HF-001 supports custom authentication for the plug-in. You need to select this mode of authentication when you are specifying the shared resource. For more information about the plug-in’s shared resource, refer TIBCO ActiveMatrix BusinessWorks™ Plug-in for Apache Pulsar User Guide, and for more information about custom authentication, refer Apache Pulsar documentation. 

You must specify the following when you select custom authentication as a mode of authentication in the shared resource:

Field

Description

Custom Auth Class Name

This is a Java class name that specifies the type of authentication that the custom authentication extends. 

Custom Auth Parameter File

This is a file from which the user details (such as username, password, JWT token, etc.) required for custom authentication with the Pulsar broker are extracted. 

Here is an example of implementing custom authentication (extending basic auth) in the TIBCO ActiveMatrix BusinessWorks™ Plug-in for Apache Pulsar:

Note: In this example, we are using the file customAuth.jar, which extends the user’s choice of authentication mechanism. 

Note: Ensure that the username and password in the following steps are the same wherever prompted. The fields are denoted as <USER_NAME> and <PASSWORD>.

  1. Copy and paste the customAuth.jar file in the <TIBCO_HOME/plugins/lib> and the <APACHE_PULSAR_SERVER_HOME/lib> folder. 
  2. Create the /etc/.htpasswd file. For more information, see Creating your Authentication File in Apache Pulsar
  3. Update the standalone.conf file present in the <APACHE_PULSAR_SERVER_HOME>/conf/ folder:
    authenticationEnabled=true
    authenticationProviders=org.apache.pulsar.broker.authentication.AuthenticationProviderBasic
    brokerClientAuthenticationPlugin=newCustomAuth.MyAuthenticationBasic // (This is the package_name.java_class_name from the customAuth.jar)
    brokerClientAuthenticationParameters={"userId":"<USER_NAME>","password":"<PASSWORD>"}
    basicAuthConf=/etc/.htpasswd
  4. When creating the shared resource, specify the following values:

Field

Value

Custom Auth Class Name

newCustomAuth.MyAuthenticationBasic

Custom Auth Parameter File

Path to the custom_basic_auth.json file. The content of the file for this example is:


{

  "userId": "<USER_NAME>",

  "password" : "<PASSWORD>"

}

 

Environment

Product:  TIBCO ActiveMatrix BusinessWorks(TM) Plug-in for Apache Pulsar Version: 5.0.0 

OS: All Supported Operating Systems

Issue/Introduction

Enhancement Requests (ERs) introduced as a part of TIBCO ActiveMatrix BusinessWorks(TM) Plug-in for Apache Pulsar 5.0.0 HF-001 

Attachments

customAuth.zip get_app