Git Product home page Git Product logo

kauth's Introduction

KrakenD Authorization Plugin

This package provides the Authorization proxy/client plugin for KrakenD API Gateway.

Plugin configuration

kauth.json is the config file for this plugin, and it should be in /opt/krakned/plugins/.

The fields of the configuration files as follows:

  • path: the URL to auth server the registering endpoint of backend service

Building plugin

Compile the plugin using the instruction in KrakenD website, and then reference them in krakend.json file. For instance:

//backend part of endpoints
"backend": [
        {
          "method": "POST",
          "encoding": "no-op",
          "host": [
            "http://localhost:8080"
          ],
          "url_pattern": "/some-backend/endpoint",
          "extra_config": {
            "plugin/http-client": {
                "name": "kauth"
             }
          }
        }
      ]
      //rest of the config

Plugin Builder Docker

docker run -it --platform linux/amd64 --rm -v "$PWD/Sites/krakend-plugin:/app" -w /app \
devopsfaith/krakend-plugin-builder:2.1.3 go build -buildmode=plugin -o kauth.so .

Krakend-ce Docker

docker run --rm --platform linux/amd64 --name krakend-ce -p 8080:8080 \
-v "$PWD/Sites/krakend/config/:/etc/krakend/" \
-v "$PWD/Sites/krakend/plugins/:/opt/krakend/plugins/" \
devopsfaith/krakend run -dc /etc/krakend/krakend.json

kauth's People

Contributors

sobhanatar avatar

Stargazers

Mohammad Parvin avatar Dan Sikes avatar  avatar

Watchers

 avatar

Forkers

hamidzar2002

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.