iamforwardauth

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IamForwardAuth

type IamForwardAuth struct {
	CheckAPI string `cfg:"check_api"`

	// IamMiddleware is the name of a registered IAM middleware instance.
	// When set, the check is performed directly in-process via the IAM
	// database instead of making an HTTP request to CheckAPI.
	IamMiddleware *string `cfg:"iam_middleware"`

	MethodHeader string `cfg:"method_header"`
	HostHeader   string `cfg:"host_header"`
	URIHeader    string `cfg:"uri_header"`

	// PassHeaders is a list of header names to copy from the incoming
	// request to the outgoing response on a successful auth check.
	PassHeaders []string `cfg:"pass_headers"`

	InsecureSkipVerify bool `cfg:"insecure_skip_verify"`
	// contains filtered or unexported fields
}

func (*IamForwardAuth) Init

func (m *IamForwardAuth) Init() error

func (*IamForwardAuth) Middleware

func (m *IamForwardAuth) Middleware() (func(http.Handler) http.Handler, error)

Jump to

Keyboard shortcuts

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