tokenpass

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenPass

type TokenPass struct {
	SecretKey     string `cfg:"secret_key"`
	SigningMethod string `cfg:"signing_method"`
	// Payload with go template as claims
	Payload string `cfg:"payload"`

	// Redirect URL with go template
	RedirectURL      string `cfg:"redirect_url"`
	RedirectWithCode bool   `cfg:"redirect_with_code"`
	Method           string `cfg:"method"`
	EnableBody       bool   `cfg:"enable_body"`
	BodyRaw          bool   `cfg:"body_raw"`
	BodyTemplate     string `cfg:"body"`

	AdditionalValues   interface{} `cfg:"additional_values"`
	DefaultExpDuration string      `cfg:"default_exp_duration"`

	InsecureSkipVerify bool              `cfg:"insecure_skip_verify"`
	EnableRetry        bool              `cfg:"enable_retry"`
	Headers            map[string]string `cfg:"headers"`

	DebugToken   bool `cfg:"debug_token"`
	DebugPayload bool `cfg:"debug_payload"`
	// contains filtered or unexported fields
}

func (*TokenPass) Middleware

func (m *TokenPass) Middleware() (echo.MiddlewareFunc, error)

Jump to

Keyboard shortcuts

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