2017 © Pedro Peláez
 

library laravel-kong-jwt

Middleware to add kong jwt claims to laravels config

image

kardigan/laravel-kong-jwt

Middleware to add kong jwt claims to laravels config

  • Wednesday, January 31, 2018
  • by kristianlunde
  • Repository
  • 1 Watchers
  • 1 Stars
  • 223 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 13 % Grown

The README.md

Laravel Kong JWT

Package to read JWT claims sent through the JWT plugin in Kong ((http://getkong.org)) to the upstream api., (*1)

It adds a middleware that pulls out all claims and add them to the config under the key "claims"., (*2)

Installation

Add the package, (*3)

composer require kardigan/laravel-kong-jwt

composer dump-autoload

Add the package to config/app.php under providers, (*4)

Kardigan\LaravelKongJwt\ServiceProvider::class,

Add the middleware to app/Http/Kernel.php or set dynamically in your routes., (*5)

Usage

If the x-consumer-custom-id is not set the middleware will return a 403 access denied., (*6)

Once the middleware is up and running you can access all claims sent through with the JWT token like this:, (*7)

Config::get('claims');

The middleware are checking for a jwt token both in the header with the "authorization" key, or as a url parameter with the "token" key, (*8)

The Versions

31/01 2018

dev-master

9999999-dev

Middleware to add kong jwt claims to laravels config

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Kristian Lunde

laravel api jwt kong

31/01 2018

v0.0.6

0.0.6.0

Middleware to add kong jwt claims to laravels config

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Kristian Lunde

laravel api jwt kong

10/08 2017

v0.0.5

0.0.5.0

Middleware to add kong jwt claims to laravels config

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Kristian Lunde

laravel api jwt kong

07/05 2017

v0.0.4

0.0.4.0

Middleware to add kong jwt claims to laravels config

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Kristian Lunde

laravel api jwt kong

07/05 2017

v0.0.3

0.0.3.0

Middleware to add kong jwt claims to laravels config

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kristian Lunde

laravel api jwt kong

07/05 2017

v0.0.2

0.0.2.0

Middleware to add kong jwt claims to laravels config

  Sources   Download

MIT

The Requires

 

by Kristian Lunde

07/05 2017

v0.0.1

0.0.1.0

Middleware to add kong jwt claims to laravels config

  Sources   Download

MIT

The Requires

 

by Kristian Lunde