Basic authentication
Basic authentication is a widely supported standard for authenticating to external systems. It is not always the most secure method, as credentials can be exposed if the connection is not properly secured.
In standard basic authentication:
- The username and password are concatenated with a colon to form a credential string:
username:password. - The credential string is base64-encoded so credentials are not transmitted in the clear.
- The resulting string is prefixed with
Basic. - The final string is placed in the
Authorizationheader of every request.
Configure basic authentication
Basic authentication is configured entirely in the authentication section of the Itential Platform service instance configuration for the adapter, accessible through Itential Platform Admin Essentials. For a full description of all authentication properties, see Service instance configuration.
Set the following properties:
- Set
auth_methodto"basic_user_password". - Set
usernameandpasswordto the credentials for the external system. Thepasswordfield can be encrypted using Itential Platform’s encryption. - Set
auth_fieldto the location in the request where the credentials should be placed. Headers are the most common placement, referenced asheader.headers.<field-name>. For the standardAuthorizationheader, useheader.headers.Authorization. - Set
auth_field_formatto the format of the credential string. The adapter library substitutes the following variables at runtime:{username}{password}{b64}…{/b64}— base64-encodes everything between the tags
Example
Variations
Some systems use variations of basic authentication. The following table describes common options and how to configure them.