Configuration
To configure a data source to use OAuth authentication:- Choose the OAuth option from the Authentication checkbox list.
-
Fill in the required fields for OAuth configuration:
- OAuth Service URL: Enter the base URL of the OAuth service.
- OAuth Endpoint Path: Specify the endpoint required for the OAuth request.
- HTTP Method: Select the HTTP method for the OAuth request. Options include POST (default) or GET.
-
Plain Authentication Variables: Configure non-sensitive variables, for example
grant_typeorusername, that will be visible in the datasource. -
Secure Authentication Variables: Use this field for sensitive credentials, for example
client_secretorpassword. These values will remain hidden. -
Access Token Path: Define the JSON path expression to extract the access token from the response, for example
objects,objects[], and$.objects[]. -
OAuth Values Location: Specify where the plain/secure authentication variables should be sent:
- Request Param: As query parameters in the URL.
- URL-Encoded Body: As a body with the
application/x-www-form-urlencodedformat. - JSON Body: As a JSON-formatted body.
- Header: As part of the request headers.
-
Header Authorization Template: Use this to define the format for the access token in the request header. For example, include the prefix Bearer before the token:
Bearer ${LW_ACCESS_TOKEN}. The special variable${LW_ACCESS_TOKEN}will be replaced with the actual token.
Validation
Connection Validation
The OAuth connection is validated when the crawl starts. Validation will fail if:- The connector cannot reach the OAuth service URL and endpoint.
- The access token cannot be parsed from the response.
Token Refresh on 401 Response
If the connector receives a401 Unauthorized response, it will automatically attempt to fetch a new access token. This ensures uninterrupted crawling if the token expires.
Special notes
Enter credentials in their normal, non-encoded format, for example[email protected]. The system performs URL-encoding internally. Avoid entering pre-encoded values, for example team%40company.com.njg4 to prevent double encoding.