Creating a basic authentication security definition
When you create a basic authentication security definition in an API, you provide details of an LDAP user registry or an authentication URL to be used to authenticate access to the API operations.
About this task
When you use basic authentication, you require API users to provide a valid user name and password to access selected operations. The application developer must also provide an HTTP authorization header in requests that are sent to operations that require basic authentication.
When you use an authentication URL, the user credentials that are provided in the authorization header are validated by the endpoint specified in the URL. If the user is authenticated, IBM® API Connect expects an authentication URL to return an HTTP 200 OK response status code. All other HTTP response status codes result in an authentication failure and access is denied.
You cannot apply more than one basic security definition to an API. If you apply a basic security definition, you cannot also apply an OAuth security definition. For information on applying security definitions, see Applying security definitions to an API.
For more information about using an LDAP user registry for authentication, see LDAP authentication.
Procedure
To create a basic authentication security definition, complete the following steps:
What to do next
Apply your security definition to the API, or to one or more API operations. For more information, see Applying security definitions to an API and Applying security definitions to an API operation.