Skip to content

ihippik/krakend-mw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KrakenD middleware

  • Relying party (Token-Based Authentication with user roles)

    middleware will check for each request the validity of the jwt-token (expiration time, signature), as well as the correspondence of the user's role with the allowed roles for this endpoint.

    middleware extra config:

      "extra_config": {
        "github_com/ihippik/krakend-mw/relyingparty": {
          "token_secret": "my-token-secret"
        }
      },

    endpoint extra config:

      "extra_config": {
        "github.com/ihippik/krakend-mw/relyingparty": {
          "roles": ["admin","member"]
        }
      },