GithubHelp home page GithubHelp logo

udleinati / kong-plugin-the-middleman Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 5.0 27 KB

A Kong plugin that enables an extra HTTP POST/GET request - the-middle-request - before proxing to the original request.

License: MIT License

Lua 78.44% JavaScript 21.56%
kong kong-external kong-gateway kong-plugin

kong-plugin-the-middleman's People

Contributors

davidwshg avatar jsanchezpilo avatar udleinati avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kong-plugin-the-middleman's Issues

Cannot forward body

Hi thanks for the plugin, may i use it in production envirment?, it is not possible to forward body, thanks in advance

Expected value but found invalid token at character 1

Hi,

Getting below error while receiving response from the middle-service

2021/10/22 06:51:04 [error] 1098#0: *250 [kong] init.lua:282 [the-middleman] ...ocal/share/lua/5.1/kong/plugins/the-middleman/access.lua:81: Expected value but found invalid token at character 1, client: 127.0.0.1, server: kong, request: "GET /maps/my-app/places HTTP/1.1", host: "localhost:8080

Plugin config :
apiVersion: configuration.konghq.com/v1 kind: KongPlugin metadata: name: kong-middle-the-man config: url: http://kong-my-app.default:8200/my-app/places/sample method: GET plugin: the-middleman

Sample response from service : { "tenantId": "123", "role": "admin", "accountId": "112233" }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.