Import sample client applications

The API Gateway ships with a number of preregistered sample client applications. For example, the default sample client applications include the following:

Client ID Client secret

SampleConfidentialApp

6808d4b6-ef09-4b0d-8f28-3b05da9c48ec

SamplePublicApp

3b001542-e348-443b-9ca2-2f38bd3f3e84

Note   The sample client applications are for demonstration purposes only and should be removed before moving the authorization server into production.

If you have already deployed OAuth by running the deployOAuthConfig.py script with the default settings, these samples are already imported. For more information on using the deployOAuthConfig.py script, see Deploy OAuth configuration.

If you did not use the deployOAuthConfig.py script, the samples are not imported, and you must import them manually into the Client Application Registry. Perform the following steps:

  1. Access the Client Application Registry web interface at the following URL:
  2. https://localhost:8089
  3. Enter the Client Application Registry user name and password.
  4. Click the Import button at the top right of the window.
  5. Select the following sample file in the dialog:
  6. INSTALL_DIR/apigateway/samples/scripts/oauth/sampleapps.dat
  7. You can also enter a Decryption Secret in the dialog. However, the sampleapps.dat file is in plain text format, and does not require a password.
  8. Click OK to import the sample applications. The following figure shows these applications imported into the Client Application Registry:
  9. Client Application Registry HTML interface

Alternatively, you can use the following script to import the sample client application data without using the Client Application Registry web interface:

INSTALL_DIR/apigateway/samples/scripts/oauth/importSampleData.py

Edit this script to configure your user credentials and file location.

Related Links