Articles in this section

OAuth 2.0 iClient settings

This reference describes every setting on an OAuth 2.0 iClient: the client credentials, the grant types and the settings each one requires, the overrides for providers that don't follow the OAuth 2.0 defaults, and the token and error settings. Use it alongside Create an OAuth 2.0 iClient. The settings come from the universal HTTP connector; an iClient created from a prebuilt connector's form view shows fewer of them (see Choose a prebuilt or universal connector).

Grant types

Grant type Use it when
Authorization code A user signs in to the provider and approves access; the provider's authorization server returns a code that integrator.io exchanges for a token.
Authorization code with PKCE Same as authorization code, with an extra one-time code verifier that protects against intercepted or injected codes. Providers often require it for public clients, such as mobile or single-page apps.
Client credentials Access is limited to resources the client itself controls, or that were set up in advance on the authorization server. Optionally signs requests with a JSON Web Token (JWT).
Password credentials The provider issues a token in exchange for an account username and password.

Settings by grant type

Setting Grant types Description
Client ID All The client ID from the provider's app registration.
Client secret All The client secret from the provider's app registration. It isn't shown again after you save.
Grant type All One of the grant types in the preceding table. The settings that follow depend on it.
Code challenge method Authorization code with PKCE The algorithm used to create the code challenge from the code verifier.
Send client credentials via All Whether integrator.io sends the client ID and secret as a basic auth header or in the request body.
Authorization URL Authorization code; Authorization code with PKCE The provider's endpoint that issues authorization codes.
Redirect URL Authorization code; Authorization code with PKCE The integrator.io URL the provider sends the user back to after sign-in. Add it to the allowlist of redirect URLs in the provider's app registration.
Access token URL All The provider's endpoint that issues access tokens. Required.
Username Password credentials The account username the provider exchanges for a token. Required.
Password Password credentials The password for that account. Required.
Revoke token URL All The provider's endpoint that revokes a token. integrator.io sends an HTTP POST request to it.
Valid domain names All The domains integrator.io is allowed to send this iClient's credentials to. See Valid domain names.
Use JWT Client credentials Signs the token request with a JWT.
Signature method Client credentials with JWT The algorithm used to sign the JWT, such as an RSA-SHA or HMAC-SHA method. HMAC methods need a Secret key; all others need a Private key.
Secret key Client credentials with JWT, HMAC methods The shared secret used to sign the JWT.
Private key Client credentials with JWT, non-HMAC methods The PEM-format private key from the provider. Remove \n characters first; see Format a JWT private key. To convert other formats, see Convert PFX certificates to PEM format or Convert a PPK file to PEM.
Payload Client credentials with JWT The JSON claims sent in the JWT. The signature keeps them from being altered.
Header Client credentials with JWT The JSON JWT header, usually alg (the signing algorithm, such as HS256 or RS256) and typ (usually JWT).

Valid domain names

Valid domain names stops anyone who uses this iClient in another connection from sending its client secret to an unapproved URL. integrator.io sends requests only to OAuth URLs whose domain is on this list.

  • Enter the full domain of the Authorization URL, Access token URL, and Revoke token URL. If they're on different domains, enter each one, separated by commas, in any order.
  • Include every part of a multi-part domain. For https://auth.example.co.uk, enter example.co.uk, not co.uk. Enter domain names only, without https://.

OAuth 2.0 overrides

Use these settings only when the provider doesn't follow the OAuth 2.0 defaults. In the body settings, you enter JSON; integrator.io sends it as form-urlencoded data.

Setting Description
Override default scope delimiter The character the provider uses between scopes, when it isn't a space.
Override access token HTTP headers Custom headers for access token requests. Replaces the default Content-Type: application/x-www-form-urlencoded.
Override access token request body A custom JSON body for access token requests. The default body sends the code, redirect URI, client ID, client secret, and grant_type when credentials go in the body, or the client ID, client secret, and grant_type when they go in the header.
Override path to access token field in the HTTP response body Where the access token is in the response, such as accessToken, or data.accessToken when it's nested.
Override refresh token HTTP headers Custom headers for refresh token requests. You can reference any connection value with a {{{placeholder}}} that gives its full path.
Override refresh token HTTP request body A custom JSON body for refresh token requests. The default sends the client ID, client secret, grant_type: refresh_token, and the refresh token.
Override path to refresh token field in the HTTP response body Where the refresh token is in the response, such as refreshToken, or data.refreshToken when it's nested.
Override revoke token HTTP headers Custom headers for revoke requests. Replaces the default form-urlencoded content type and basic authorization header.
Override revoke token HTTP body A custom JSON body for revoke requests. The default sends the token.

Token settings

Send token via sets where the API expects the access token:

Value Description
HTTP header Sends the token in a request header. Header name defaults to Authorization; change it if the API uses a different header. Header scheme sets the prefix before the token, such as Bearer in Authorization: Bearer <token>.
HTTP body Sends the token inside the request body. Place it in your body template with the handlebars placeholder {{{connection.http.auth.token.token}}}, in triple braces.
URL parameter Sends the token as a query string parameter. Parameter name sets its name; for example, myAPITokenURLParam adds ?myAPITokenURLParam=<token> to every request.

Authentication error settings

Set these only when the API doesn't return HTTP 401 for authentication errors.

Setting Description
Override HTTP status code for auth errors The status code the API returns for authentication errors, such as 400.
Path to auth error field in HTTP response body The response field that signals an authentication error, such as errorMessage.
Auth error values The values in that field that mean an authentication error, such as Auth failed. Separate several values with commas.