Coder Social home page Coder Social logo

kong-plugin-backend-token-creation's Introduction

kong-plugin-backend-token-creation

‼️ This code is just an example on how custom plugins are developed. This is not supported by Kong or meant to be used in any production environment. ‼️

How deploy this plugins

  1. clone this repository
  2. execute the following command to create a config map
kubectl create configmap backend-token --from-file=./github/kong-plugin-backend-token-creation/kong/plugins/backend-token-creation -n kong-enterprise 
  1. in the values.yaml of the Kong Gateway data plane add:

env:
    plugins: backend-token-creation
plugins: 
  configMaps:
  - name: bbackend-token-creation
    pluginName: backend-token-creation
  1. add custom plugin to Konnect control plane
    • Select Plugins and New Plugin Button

    • select Custom Plugins and create Alt text

    • select the schema.lua file and click save Alt text

  • now the plugin is available in this control plane.

How to use the plugin

  1. Select the route or service where you want to add the plugin
  2. Configure the plugin with
    1. Token URL of the token endpoint
    2. Client ID
    3. Client Secret and if needed
    4. Scope(s)
    5. Credentials send in Auth header or body

Alt text

kong-plugin-backend-token-creation's People

Contributors

mod42 avatar

Watchers

 avatar

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.