iguazio

package
v0.0.0-...-e0d34a4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IguazioUsernameLabel                          string = "iguazio.com/username"
	IguazioDomainLabel                            string = "iguazio.com/domain"
	IguazioVerificationAndDataEnrichmentURLSuffix string = "_enrich_data"
)

Variables

This section is empty.

Functions

func NewAuth

func NewAuth(logger logger.Logger, config *authpkg.Config) authpkg.Auth

Types

type Auth

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

func (*Auth) Authenticate

func (a *Auth) Authenticate(request *http.Request, options *authpkg.Options) (authpkg.Session, error)

Authenticate will ask IguazioConfig session verification endpoint to verify the request session and enrich with session metadata

func (*Auth) Kind

func (a *Auth) Kind() authpkg.Kind

func (*Auth) Middleware

func (a *Auth) Middleware(options *authpkg.Options) func(next http.Handler) http.Handler

Middleware will authenticate the incoming request and store the session within the request context

Jump to

Keyboard shortcuts

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