From 6018b7532d00a94a776fbdc98428c8d9f8485196 Mon Sep 17 00:00:00 2001 From: tarentomaheshvakkund <139739142+tarentomaheshvakkund@users.noreply.github.com> Date: Mon, 1 Jan 2024 23:32:14 +0530 Subject: [PATCH] KB-1722 - Create an API to get the user login details and raise the kafka event. 1.Added Kong entry for new api --- ansible/roles/kong-api/defaults/main.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 8cc317d196..9518c82295 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -10706,4 +10706,18 @@ kong_apis: config.hour: "{{ medium_rate_limit_per_hour }}" config.limit_by: credential - name: request-size-limiting - config.allowed_payload_size: "{{ small_request_size_limit }}" \ No newline at end of file + config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: userfirstloginlastlogin + uris: "/v1/user/login" + upstream_url: "{{ learning_service_url }}/v1/user/login" + 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: "{{ medium_request_size_limit }}" \ No newline at end of file