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
-
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
-
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