traefik_jwt_eddsa

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

README

JWT EdDSA plugin

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error)

New created a new plugin.

Types

type Config

type Config struct {
	PublicKey       string `json:"public_key"`
	LoginURL        string `json:"login_url"`
	AccessTokenName string `json:"access_token_name"`
	ParseCookies    bool   `json:"parse_cookies"`
}

Config the plugin configuration.

func CreateConfig

func CreateConfig() *Config

CreateConfig creates the default plugin configuration.

type JwtEdDSA

type JwtEdDSA struct {
	// contains filtered or unexported fields
}

JwtEdDSA a plugin.

func (*JwtEdDSA) ServeHTTP

func (e *JwtEdDSA) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL