-
Notifications
You must be signed in to change notification settings - Fork 896
config properties rate_limiter
v1.1.0
object
(rate_limiter)
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
enabled | boolean |
Optional | cannot be null | Config |
store | string |
Optional | cannot be null | Config |
redis_config | object |
Optional | cannot be null | Config |
passcode_limits | object |
Optional | cannot be null | Config |
password_limits | object |
Optional | cannot be null | Config |
token_limits | object |
Optional | cannot be null | Config |
enabled
controls whether rate limiting is enabled or disabled.
enabled
-
is optional
-
cannot be null
boolean
The default value is:
true
store
sets the store for the rate limiter. When you have multiple instances of Hanko running, it is recommended to use
the redis
store because otherwise your instances each have their own states.
store
-
is optional
-
cannot be null
string
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"in_memory" |
|
"redis" |
The default value is:
"in_memory"
redis_config
configures connection to a redis instance.
Required if store
is set to redis
redis_config
-
is optional
-
cannot be null
object
(Details)
passcode_limits
controls rate limits for passcode operations.
passcode_limits
-
is optional
-
cannot be null
object
(Details)
password_limits
controls rate limits for password login operations.
password_limits
-
is optional
-
cannot be null
object
(Details)
token_limits
controls rate limits for token exchange operations.
token_limits
-
is optional
-
cannot be null
object
(Details)