Configuring credentials
1 minute read
API Builder credentials are defined in the configuration under the authorization
key. Credentials are uniquely identified by its credential name
, and its type
. The credential name
is how the credential will be referenced from the flows that use the credential. Each type of credential also requires additional type-specific configuration information. API Builder supports three credential types, API Key, HTTP Basic, and OAuth 2.0 with the respective types apiKey
, basic
, and oauth2
.
// default.js
authorization: {
credentials: {
"<credential name>": {
type: "<type>",
...
}
}
}
For additional credential management information, refer to API Builder credential management. For how-to information on accessing Gmail using a Swagger flow-node, refer to Access Gmail using a Swagger flow-node. For how-to information on accessing Microsoft OneDrive using a REST flow-node, refer to Access Microsoft OneDrive using a REST flow-node.