Skip to content

middleware plugin for Traefik that verifies a JWT token and adds the payload as an injected header to the request with some modification

License

Notifications You must be signed in to change notification settings

toanz/jwt-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWT Token

JWT Token is a middleware plugin for Traefik which verifies a jwt token and adds the payload as injected header to the request

Configuration

Start with command

command:
  - "--experimental.plugins.jwt-token.modulename=github.com/toanz/jwt-token"
  - "--experimental.plugins.jwt-token.version=v0.1.2"

Activate plugin in your config

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
meta:
spec:
  plugin:
    jwt-token:
      secret: SECRET
      proxyHeaderName: injectedPayload
      authHeader: Authorization
      headerPrefix: Bearer

Use as docker-compose label

  labels:
        - "traefik.http.routers.my-service.middlewares=my-jwt-token@file"

About

middleware plugin for Traefik that verifies a JWT token and adds the payload as an injected header to the request with some modification

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages