ApiKeySentinelOptions Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Http.Headers
- Assemblies
- Cuemon.AspNetCore.dll
ApiKeySentinelOptions()
Initializes a new instance of the ApiKeySentinelOptions class.
public ApiKeySentinelOptions()
Remarks
The following table shows the initial property values for an instance of UserAgentSentinelOptions.
| Property | Initial Value |
|---|---|
| HeaderName | XApiKey |
| AllowedKeys | new List{string}(); |
| GenericClientMessage | The requirements of the request was not met. |
| GenericClientStatusCode | BadRequest |
| ForbiddenMessage | The API key specified was rejected. |
| ResponseHandler | A HttpResponseMessage initialized to either a HTTP status code 400 or 403 and a body of either GenericClientMessage or ForbiddenMessage. |
| UseGenericResponse | false |