You can synchronize application credentials from the Developer Portal with
an external server.
Before you begin
You must have administrator access to the Developer Portal to
complete this task.
Note: This module synchronizes the credentials of applications that are created
by consumers in the Developer Portal site UI. It cannot synchronize the credentials for applications
that are created by the provider in the API Manager UI.
Download the Application
credential synchronization folder.
Perform the following steps:
- Clone the custom module. Here is an example if you are using Mac or
Linux:
git clone https://github.com/ibm-apiconnect/devportal-addons
- Navigate to the
appcreds_sync
folder:cd devportal-addons/apic_v10/modules/appcreds_sync
About this task
In this tutorial, you configure a custom module and install it in the Developer Portal to
synchronize application credentials between the Developer Portal and
an external credentials server.
The appcreds_sync
folder that you downloaded is a custom module that contains
multiple methods that can be configured with your REST endpoints, and any further specifications
that you want to define, to synchronize your Developer Portal
application credentials with an external credential server.
For more information, see Custom module development: background and prerequisites.
Procedure
To configure the custom module to synchronize application credentials:
-
In the appcreds_sync.module file, replace
example.com
with your REST endpoint for the following method types:
http://example.com/app/create
http://example.com/app/delete
http://example.com/app/creds/create
http://example.com/app/creds/update
http://example.com/app/creds/delete
http://example.com/app/clientid/reset
http://example.com/app/clientsecret/reset
- Optional:
Replace
username
and password
with your username and password
in the _appcreds_sync_json_http_request
function:
('username' . ':' . 'password')
Note: You can also configure the SSL settings if you need to.
-
Save the file, and package up the custom module:
cd..
tar -czf appcreds_sync.tar.gz appcreds_sync/
To install the configured custom module in the Developer Portal:
- Log in to your Developer Portal as an administrator.
-
Click .
-
In the Add from a URL field, enter a path to the module.
Alternatively, upload the module in the Upload a module or theme archive
section.
- Click Continue.
:
-
To enable the module, complete the following steps.
- Click Extend and search for the custom module that is
installed.
For example, Synchronise Application
Credentials.
- Select the checkbox next to the module name and click
Enable.
Results
You have configured a custom module that synchronizes application credentials from the Developer Portal,
installed that module in the Developer Portal, and
enabled it. No further action or configuration is required.