Set up API Gateway as an OAuth 2.0 server > Import sample client applications

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 used the deployOAuthConfig.py script to deploy the OAuth service, these samples are already imported. For more information on using the deployOAuthConfig.py script, see Enable OAuth management.

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:
https://localhost:8089
  1. Enter the Client Application Registry user name and password. The default user name is regadmin.
  2. Click the Import button at the top right of the window.
  3. Select the following sample file in the dialog:
$VDISTDIR/samples/scripts/oauth/sampleapps.dat
  1. VDISTDIR specifies the directory in which API Gateway is installed.
  2. 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.
  3. Click OK to import the sample applications. The following figure shows these applications imported into the Client Application Registry:

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:

$VDISTDIR/samples/scripts/oauth/importSampleData.py

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