Basic Authentication provides the HTTP Basic Authentication
method. It requires entering a username and password in the configuration and sends the encoded values in the
Authorization
header.
In the user interface, you simply select the Basic Authorization
method and enter the username and password.
A sample Basic authentication looks like this:
The username
and password
fields are part of the config
section.
They are also prefixed by the hash #
character, which means they are stored encrypted.
If the API expects something else than a username and password in the Authorization
header, or if it requires
a custom authorization header, use the Default Headers option.
This basic
type of authentication has no configuration parameters. The login and password must be provided in the
config
section of the Generic Extractor configuration.
Assume you have an API which requires you to use the HTTP Basic authentication to send the login and password in
the Authorization
header. Assume that your login is JohnDo
and password is secret
. The following
configuration solves the situation:
The following HTTP header will be sent:
Authorization: Basic Sm9obkRvZTpzZWNyZXQ=
See example [EX078].
© 2024 Keboola