Loading

How to Pass API Manager Client ID/Secret Via Maven for RTF App

Data pubblicazione: Mar 2, 2024
Fasi

CONTENTS

You are using RTF and Maven as a pipeline to deploy to RTF. You need to pass API Manager client ID and client secret credentials through the pipeline. Here is how to configure this setup.


STEPS TO FOLLOW

1. In your app's pom.xml ensure that you add the following deployment strategy section: link

2. Inside the section for "properties", ensure that it looks like this:
 
<properties>
<anypoint.platform.client_id>${anypoint.platform.client_id}</anypoint.platform.client_id>
<anypoint.platform.client_secret>${anypoint.platform.client_secret}</anypoint.platform.client_secret>
<otherVariable>${test}</otherVariable>
</properties>

3. In your mvn command to deploy your JAR, ensure that you pass the correct API Manager client ID and client secret. Here is how to obtain the client ID and secret: link

4. Your mvn command should look something like this with the client ID and client secret passed it:
mvn mvn clean deploy -DmuleDeploy -Danypoint.platform.client_id=XXXXXXXXXXXXXXXXX -Danypoint.platform.client_secret=XXXXXXXXXXXXXXXXX

 
Numero articolo Knowledge

001115458

 
Caricamento
Salesforce Help | Article