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 ¶
Click to show internal directories.
Click to hide internal directories.