From fa8368f6a173f813a3f83df320b879af9e7c7309 Mon Sep 17 00:00:00 2001 From: sreeragksgh Date: Thu, 23 Nov 2023 18:19:16 +0530 Subject: [PATCH] New Generate OTP EXT API --- ansible/roles/kong-api/defaults/main.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 19cb14295c..ce42e2ed64 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -10527,4 +10527,20 @@ kong_apis: config.hour: "{{ medium_rate_limit_per_hour }}" config.limit_by: credential - name: request-size-limiting - config.allowed_payload_size: "{{ medium_request_size_limit }}" + config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: generateOtpEXT + uris: "{{ otp_service_prefix }}/ext/v1/generate" + upstream_url: "{{ sb_cb_ext_service_url }}/user/otp/v1/generate" + strip_uri: true + plugins: + - name: cors + - "{{ statsd_pulgin }}" + - name: rate-limiting + config.policy: local + config.hour: "{{ medium_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ small_request_size_limit }}" + +