REST API authorisation with OAuth
The REST adapter supports accessing REST APIs that require an OAuth access token in the request. Users can supply the OAuth access token request details in the service configuration. The supported configuration parameters are as follows:
Property | Description | Mandatory | Default |
---|---|---|---|
|
The access token endpoint URL of the authorisation server. |
YES |
- |
|
The request parameters to be supplied with the access token request. By default, the 'grant_type' parameter with the value 'client_credentials' will be set. See below for details. |
NO |
- |
|
The headers to be supplied with the access token request. By default, the 'Content-Type' header with the value 'application/x-www-form-urlencoded' will be set. See below for details. |
NO |
- |
|
The HTTP method to be used to request the access token. Options available,
one of: |
NO |
'POST' |
|
A string value to be posted to the OAuth access token request. |
NO |
- |
Property | Description | Mandatory | Default |
---|---|---|---|
|
The client ID that will be supplied as request parameter. |
NO |
- |
|
The client secret that will be supplied as request parameter. |
NO |
- |
|
The grant type for the OAuth access token request. |
NO |
|
|
Any additional request parameters, supplied as key/value pairs in string format to be supplied with the request. |
NO |
- |
Property | Description | Mandatory | Default |
---|---|---|---|
|
The client ID, which will be Base64 encoded with 'clientSecret' and
supplied as a Basic Authorization header. If the 'Authorization' header needs to
be set directly, setting 'clientId' can be omitted and the |
NO |
- |
|
The client secret, which will be Base64 encoded with 'clientId'
and supplied as a Basic Authorization header. If the 'Authorization' header needs
to be set directly, setting 'clientSecret' can be omitted and the |
NO |
- |
|
The content type to be supplied in the header. |
NO |
|
|
Any additional headers supplied as key/value pairs in string format to be supplied with the request |
NO |
- |
The clientId and clientSecret values can be supplied either in the request
parameters or in the headers, depending on the requirements of the authorisation server.
|