You can use these credentials to authenticate the following nodes:
You must use the authentication method required by the app or service you want to query.
Mosaic Workflows recommends using this option whenever there's a credential type available for the service you want to connect to. It offers an easier way to set up and manage credentials, compared to configuring generic credentials.
You can use Predefined credential types for more information.
To use a predefined credential type:
- Open your HTTP Request node, or add a new one to your workflow.
- In Authentication, select Predefined Credential Type.
- In Credential Type, select the API you want to use.
- In Credential for
<API name>, you can:- Select an existing credential for that platform, if available.
- Select Create New to create a new credential.
The following generic authentication methods are available:
- Basic Auth
- Custom Auth
- Digest Auth
- Header Auth
- OAuth1 API
- OAuth2 API
- Query Auth
You can learn more about HTTP authentication here.
- Update the credential name.
- Enter the Username and Password for the app or service your HTTP Request is targeting.
- Select Save to save your credentials.
- Update the credential name.
- Enter the header Name and Value required for the app or service your HTTP Request is targeting. Read more about HTTP headers.
- Select Save to save your credentials.
- Update the credential name.
- Enter the following authentication details:
- Authorization URL
- Access Token URL
- Consumer Key
- Consumer Secret
- Request Token URL
- Signature Method
- Select Save to save your credentials.
Read more about OAuth1.
- Update the credential name.
- Enter the following authentication details:
- Authorization URL
- Access Token URL
- Client ID
- Client Secret
- Scope
- Auth URI Query Parameters
- Authentication
- Select Save to save your credentials.
Read more about OAuth2.
The Generic Auth Type > Custom Auth option expects JSON data to define your credential. You can use headers, qs, body or a mix. See the examples below to get started.
{
"headers": {
"X-AUTH-USERNAME": "username",
"X-AUTH-PASSWORD": "password"
}
}{
"body" : {
"user": "username",
"pass": "password"
}
}{
"qs": {
"appid": "123456",
"apikey": "my-api-key"
}
}{
"headers": {
"api-version": "202404"
},
"qs": {
"apikey": "my-api-key"
}
}You can send an SSL certificate with your HTTP request. You can use this alongside other credential types.
- In the node Settings, enable SSL Certificates.
- On the Parameters tab, add the SSL credential to Credential for SSL Certificates.