PingDirectory

Enabling OAuth authentication

About this task

To enable OAuth authentication, you need to create an implementation of the OAuthTokenHandler using the API provided in the Server SDK. For details on creating an OAuthTokenHandler extension, see the Server SDK documentation.

Steps

  1. Install your OAuth token handler on the server using dsconfig.

    Example:

    $ bin/dsconfig create-oauth-token-handler \
      --handler-name ExampleOAuthTokenHandler \
      --type third-party \
      --set extension-class:com.unboundid.directory.sdk.examples.ExampleOAuthTokenHandler
  2. Configure the SCIM servlet extension to use it as follows:

    Example:

    $ bin/dsconfig set-http-servlet-extension-prop \
      --extension-name SCIM \
      --set oauth-token-handler:ExampleOAuthTokenHandler