Deploying Custom Adapters

Use the custom adapters to implement the service provider interfaces.

The custom adapters implement the service provider interfaces for OAuth server. To enable the OAuth server to use the custom adapters, deploy TIBCO API Exchange Gateway on the same machine where the Identity service provider of the OAuth server runs.

To deploy the custom adapters, follow these steps:

Procedure

  1. Copy the Adapters Jar Files.

    Copy the jars containing the implementation class of the adapters and their dependencies to ASG_HOME/lib/ext/tpcl directory.

  2. Set OAuth Adapter Properties

    Set the OAuth adapter properties using the Config UI. OAuth adapter properties settings are described in the Properties For OAuth Adapters section..

    Note:
    • You can set the OAuth server adapter properties in the ASG_CONFIG_HOME/asg.properties file. Refer to Properties For OAuth Adapters for properties details.
    • If the custom adapters use external resources and require configuration, the custom adapters will need to obtain the configuration accordingly.

      For example, the file adapters for owner, client and scope use the following resource files containing the configuration and are found in ASG_HOME/examples/OAuth/resources directory :

      • clients.properties
      • owners.properties
      • scopes.properties