Categorygithub.com/techidea8/traefikjwtauthor
modulepackage
0.0.6
Repository: https://github.com/techidea8/traefikjwtauthor.git
Documentation: pkg.go.dev

# README

traefikjwtauthor

这个用来通过jwt鉴权 用户需要配置 TokenParam字段 和 WhiteList 字段 secret

Configuration

Static

experimental:
  localPlugins:
    traefikjwtauthor:
      modulename: github.com/techidea8/traefikjwtauthor
experimental:
  plugins:
    traefikjwtauthor:
      modulename: github.com/techidea8/traefikjwtauthor
      version: v0.0.1

Dynamic configuration

http:
  routers:
    my-router:
      middlewares:
        - traefik-real-ip
        - traefikjwtauthor
  middlewares:
    traefikjwtauthor:
      plugin:
        traefik-jwtauthor:
          whiteList:
            - "1.1.1.1/24"
          

Configuration documentation

Supported configurations per body

SettingAllowed valuesRequiredDescription
whiteList[]stringNo不需要鉴权的白名单
paramstringNo鉴权参数对应的字段名
secretstringNo密钥

# Functions

CreateConfig creates the default plugin configuration.
No description provided by the author

# Variables

不要设置为const 设置成cost 后初始化将无法覆盖.
不要设置为const 设置成cost 后初始化将无法覆盖.
不要设置为const 设置成cost 后初始化将无法覆盖.
不要设置为const 设置成cost 后初始化将无法覆盖.

# Structs

系统会将这些东西传递到第三方.
RealIPOverWriter is a plugin that blocks incoming requests depending on their source IP.