Applying security definitions to an API
The security definition contains security settings that you enforce to define access control requirements for the operations in the API, by applying the security definition to an API.
Before you begin
About this task
Note: This task relates to configuring an OpenAPI 2.0 API definition. For details
on how to configure an OpenAPI 3.0 API definition, see Editing an OpenAPI 3.0 API
definition.
You can complete this task either by using the API Designer UI application, or by using the browser based API Manager UI.
The following restrictions exist when you apply security definitions to an API:
- You cannot apply more than two API key security definitions to an API.
- If you apply an API key security definition for client secret, you must also apply an API key security definition for client ID.
- If you require the application developer to supply both client ID and client secret, you must apply two separate API key security definitions.
- You can have at most one API key definition of type client ID, regardless of whether the client ID is sent in the request header or as a query parameter.
- You can have at most one API key definition of type client secret, regardless of whether the client secret is sent in the request header or as a query parameter.
- 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.
- You can apply at most one OAuth security definition to an API.
Procedure
To apply security definitions to an API, complete the following steps: