Standard non-authenticated HTTP requests
You can use HTTP requests without authentication, if the service provider or web server receiving the request does not require authentication.Authenticated HTTP requests to existing service providers
HTTP Actions can be used with most of the Blink connection types to send authenticated requests to existing service providers in Blink. For example, to send an authenticated request to GitHub’s API, use a GitHub connection.
Authenticated HTTP requests to unsupported service providers
Blink adds support for additional service providers on a weekly basis. To use Actions with a service provider that is not currently supported, there are two options:- Contact the Blink team to request integration with a new service provider. Contact us.
- Use generic HTTP Actions to communicate with unsupported service providers, as explained below.
Using generic HTTP actions to communicate with unsupported service providers
HTTP Actions can be used with one of the four HTTP connection types to send authenticated requests to service providers that aren’t currently supported by Blink:- Basic Authentication
- Bearer Authentication
- Custom Authentication
- Custom 2 Legged (OAuth 2.0) Authentication
Basic Authentication
Authenticate using theBasic authentication standard.
Bearer Authentication
Authenticate using theBearer authentication standard.
Custom Authentication
Authenticate using a custom authentication. You can set 3 different header values to be sent in each request.Custom 2 Legged Authentication
Authenticate using a custom 2 legged authentication, also known asOAuth 2.0.
After being acquired, the token will be used as a
Bearer token, in accordance with the OAuth 2.0 standard.Examples
Since two-legged authentication can be both versatile and complex, please refer to the following detailed explanations of the connection parameters’ behavior. Token Extraction Path The token extraction path parameter is responsible for the correct extraction of the authentication token from the returning response. For example: The server returns the following payload:Token Extraction Path value is token.
The server returns the following payload which contains nested fields:
Token Extraction Path value is 2lo_token.token.
We currently support extraction only from JSON payload responses.
-
The expiry value is extracted from the token request response.
In this case, alongside the authentication token, the response payload contains a token expiration value. The following parameters accompany this expiration type:
Expiry Extraction Pathis responsible for the extraction of the expiry value. It has identical logic as theToken Extraction Pathparameter.Expiry Typeis responsible for the valid evaluation of the expiry value. We currently support: The response contains the duration of validity of the token in seconds, The response contains the expiration timestamp of the token in Unix timestamp format1152478800and The response contains the expiration timestamp of the token in date-time format2006-07-10T15:04:05Z02:00.
-
The expiry value is extracted from a JWT header, given that the token itself is a JWT.
In this case, the authentication token is of JWT format and contains in a JWT header the expiration value. The following parameter accompanies this expiration type:
JWT Header Nameis responsible for the header name that the expiration time is located in. By default, this value isexpbut may vary.
-
The expiry value is constant.
In this case, the authentication token expires after a set amount of time after creation. The following parameter accompanies this expiration type:
Default Expiryis the expiry time in seconds in which after the initial request, the token will expire.
Body value of grant_type: client_credentials, client_id: myClientID, client_secret: myClientSecret
application/json
application/x-www-form-urlencoded
Headers is responsible for the header in the initial token request.
Disable SSL Enforcement is responsible for disabling SSL enforcement for the initial token request. Note that this doesn’t affect the actions that use the connection.
Zero Trust Parameters are responsible for all zero trust handling for all action using the connection.