Basic Auth and Other Simple Authentication Methods
Basic Auth, Bearer Token, API Key, and other special cases.
Last updated
Was this helpful?
Basic Auth, Bearer Token, API Key, and other special cases.
Last updated
Was this helpful?
This page covers multiple simple authentication methods:
Header-based Authentication
Special cases
The authentication configuration is the same for all these authentication methods and only requires auth_form
to be filled (thus config
is always {}
), e.g.:
Basic Auth is a simple method for authenticating HTTP requests by sending a username and password pair encoded in Base64 within the request header. Due to its simplicity, it’s commonly used for APIs and web services, but it’s typically suitable for environments that use HTTPS because it doesn’t encrypt credentials by itself.
This is an example of the standard Basic Auth:
Note, the identifier is the username. You can flexibly include more things in e.g. the token_format
. Below is an example of Zendesk, which has an additional /token
.
For standard Bearer Token authentication, the header looks like this:
For more flexibility, which is e.g. needed for other API Key authentication, the header_key
value and token_prefix
values often need to be adjusted, e.g.:
This is not a recommended method for security reasons! But some APIs still use it.
Under the field URL Token Extension
on the Connector, add {{endpoint}}&access_token={{token}}
where access_token
is the API key required by the Connector (i.e. change it accordingly)
Set token_in_header
to false
the header configuration in this case:
The {{token}}
is then replaced with the auth_token
on each request.
This part of the URL is not logged in Flow Debugging, so the API Key doesn't appear in the debugger.