User Security
Use the User Security policy to extract a user's credentials, authenticate those credentials, and obtain authorization from the user.
| Gateway | Policy version |
|---|---|
| DataPower® API Gateway | 2.0.0 |
This topic describes how to configure the policy in the assembly user interface; for details on how to configure the policy in your OpenAPI source, see user-security.
About
When you define an assembly user security action, you can define the processing for identity-extraction, authentication, and authorization or you can selectively disable any of these this aspects of processing. When disabled, this processing aspect is skipped.
- Use basic authentication, which requires no additional configuration.
- Use context variables. For this method, specify which variable contains the user name and password.
- Use a redirect. For this method, specify the URL fragment to redirect to, and the time allowed to process.
- Use an HTML login form. For this method, specify whether to use the default or custom form and the time allowed to submit the form. For a custom form, specify the location of the form and the TLS client profile to secure the connection to the remote server.
- Contact an LDAP server. For this method, specify which server to contact.
- Send a request to an authentication endpoint. For this method, specify the URL of the endpoint, the TLS client profile to secure the connection, the pattern to select which response header to add, and the response header that contains the authenticated credentials.
- Implicitly accept any previously authenticated users, which requires no additional configuration.
- Use an HTML authorization form. For this method, specify whether to use the default or custom form and the time allowed to submit the form. For a custom form, specify the location of the form and the TLS client profile to secure the connection to the remote server.
You can attach this policy to the REST API flow.
Properties
The following table lists the policy properties, indicates whether a property is required, specifies the valid and default values for input, and specifies the data type of the values.
| Property label | Required | Description | Data type |
|---|---|---|---|
| Title | No | The title of the policy. The default value is |
string |
| Description | No | A description of the policy. | string |
| Factor ID | No | The identity that identifies the results of factor-authentication in the API context. | string |
| Extract Identity Settings | Yes | Select the method that is used to extract the user credentials. The following options are available:
Select Stop on error to halt assembly processing in the event of identity-extraction failure. |
string |
| Authenticate User Settings | Yes | Select the authentication method. The following options are available:
Select Stop on error to halt assembly processing in the event of authentication failure. |
string |
| Authorize User Settings | Yes | Select the authorization method. The following options are available:
Select Stop on error to halt assembly processing in the event of authorization failure. |
string |