Creating a basic authentication security definition
When you create a basic authentication security definition in an API, you provide details of a user registry to be used to authenticate access to the API operations.
Before you begin
IBM® API Connect supports three types of user registries: Authentication URL user registry, LDAP user registry, and Local user registry.
Before you can create a basic authentication security definition in an API, the user registry must exist. To create a user registry, you can use either API Manager or Cloud Manager. When you create a registry in API Manager, it is visible only to your provider organization. When you create a registry in Cloud Manager, you can make it visible to multiple provider organizations.
To create a user registry with API Manager, see Working with user registries.
To create a user registry with Cloud Manager, see User registries overview.
About this task
You can complete this task either by using the API Designer UI application, or by using the browser based API Manager UI.
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.
For information about using an Authentication URL, see Authentication URL user registry.
Procedure
To create a basic authentication security definition, complete the following steps:
Results
A Basic security definition is now added to the Security Definitions.
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.