Questions tagged [kong-plugin]
168 questions
2
votes
1 answer
How to get User ID when using Basic Auth and Session plugins are enabled in Kong?
I'm currently using Kong API gateway. After using logging in and retrieving a session. The username is not forwarded to the backend service. How do I get the username from the session token provided by Kong?
plugins:
name: basic-auth
service:…

Hany Morcos
- 147
- 1
- 5
2
votes
1 answer
Is it possible to replace the json property in the body response using kong response-transformation plugin?
Is it possible to replace the JSON property in the body response using the kong response-transformation plugin? if yes, how to can I accomplish it using the UI Konga?
Example of a response body:
[
{
"id": 1,
"name": "Leanne Graham",
…

J. Viégas
- 135
- 1
- 11
2
votes
1 answer
Kong + Keycloak + OAuth: jwt-keycloak or oauth2 plugin?
I use Kong as API Gateway for my services which should be OAuth-protected using the Client Credentials flow. Right now, I implemented this using the jwt-keycloak plugin. Everything's fine, I request an auth-token from Keycloak and pass it on with my…

marp
- 25
- 5
2
votes
1 answer
Using Kong API Gateway key-auth plugin with keycloak protected rest apis
My setup is as follows:
Rest APIs (Spring boot)
Front-end application (Angular 8)
Auth Server (Keycloak)
Current scenario:
User enters the username and password in the angular login page.
Angular makes a POST request and gets the access token,…

Gajender Parmar
- 51
- 7
2
votes
1 answer
Kong custom auth layer and rate limiting
I would like to use Kong to protect some services. But I already used an idm for the user management.
The user gets a token from the idm and puts it in the header when he requests the kong gateway. For this I would write a plugin that does this. The…

SamuelTJackson
- 1,357
- 3
- 19
- 40
2
votes
2 answers
How to add community plugins in kong installed using docker
We are trying to install community plugin Kong Service Virtualization. As I am completely new to kong, I am not able find any solution where detailed installation steps have been given like where and how to add that plugin, how to edit kong.conf…

DevSay
- 886
- 1
- 14
- 32
2
votes
1 answer
Base64 encoded JWT token validation using KONG
I have a java code which generates a JWT token using Jwts.builder().
However, the generated token is then again encoded using a Base64 encoder, e.g.
Base64.getEncoder().encodeToString(token.getBytes())
I have been able to setup kong to validate the…

ananda
- 121
- 3
- 9
2
votes
1 answer
strip_path and preserve_host attributes in KongIngress object. What do they do?
I have a KongIngress object configuration attributes regarding to Ingress resource which call to kong as an Ingress controller. I actually have this configuration:
apiVersion: configuration.konghq.com/v1
kind: KongIngress
metadata:
name:…

bgarcial
- 2,915
- 10
- 56
- 123
2
votes
0 answers
Using Kong AWS Lambda plugin for request authentication
In Kong is it possible to reuse the AWS Lambda plugin to carry out authentication.
I have followed this documentation https://docs.konghq.com/hub/kong-inc/aws-lambda/ for setting up the Lambda. I have a test AWS Lambda function that just returns the…

user3352617
- 189
- 4
- 15
2
votes
0 answers
config.duration not getting applied in Canary release plugin of KONG
I am trying to configure Canary release plugin in Kong.
The plugin get activated on epoch time provided in config.start parameter. But the config.duration provided in seconds does not work, and the requests keep on getting routed to the upstream…

Sim
- 33
- 5
2
votes
3 answers
How to remove Server header with kong response-transformer plugin?
I'm trying to remove the Server header by using the following declarative map in a serverless approach:
plugins:
- name: response-transformer
service: my-service
config:
remove.headers: Server
but I get:
in 'plugins':
- in entry 1…

Phate
- 6,066
- 15
- 73
- 138
2
votes
1 answer
How to make request to api on kong getway from browser
I configured service/route on KONG without any host name and paths. I able to make GET request from browser(my web app) but whenever doing POST, PUT, DELETE call from browser(web app) getting CORS(cross origin Resource Sharing) issue. But I'm able…

Anil Jagtap
- 1,740
- 4
- 27
- 44
2
votes
2 answers
How to setting JWT Authentication in KONGA
I want to add a JWT Authentication to my services.
I have done the following steps, but JWT Authentication is not working
Create a Consumer
Insert a JWT secret into Consumer
Add a JWT plugin with the Consumer id in Service and Route
However, the…

mastersuse
- 936
- 1
- 15
- 35
2
votes
1 answer
Import OpenAPI/Swagger specification with Kong Enterprise
Is it possible to import OpenAPI/Swagger specification with Kong Enterprise edition to generate APIs?

adesai
- 370
- 3
- 22
1
vote
0 answers
how to generate the access token in kong manager api client credential based and how to use oauth2 for my endpoint through kong
I have a service named test-service pointing to the host https://personal-91siwo3k.outsystemscloud.com/ with path config of APEXADIOrdering_API/rest/ADIOrdering/EndCustomersList
Afterward, I created a route pointing to said service named…

karthick
- 11
- 1