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.

  1. Install your OAuth token handler on the server using dsconfig.
    $ 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:
    $ bin/dsconfig set-http-servlet-extension-prop \
      --extension-name SCIM \
      --set oauth-token-handler:ExampleOAuthTokenHandler