ThrottleByJwtCustomClaimRule interface
Throttle the client connection by a custom JWT claim
- Extends
Properties
| claim |
The name of the claim in the JWT token. The client connection with the same claim value will be aggregated. If the claim is not found in the token, the connection will be allowed. |
| max |
Maximum connection count allowed for the same Jwt claim value. Clients with the same Jwt claim will get rejected if the connection count exceeds this value. Default value is 20. |
| type |
Property Details
claimName
The name of the claim in the JWT token. The client connection with the same claim value will be aggregated. If the claim is not found in the token, the connection will be allowed.
claimName: string
Property Value
string
maxCount
Maximum connection count allowed for the same Jwt claim value. Clients with the same Jwt claim will get rejected if the connection count exceeds this value. Default value is 20.
maxCount?: number
Property Value
number
type
type: "ThrottleByJwtCustomClaimRule"
Property Value
"ThrottleByJwtCustomClaimRule"