auth

package
v0.0.0-...-969384c Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIKeyInHeader sets auth content in header
	APIKeyInHeader apiKeyType = "header"
	// APIKeyInQuery sets auth content in url query
	APIKeyInQuery apiKeyType = "query"
)

Variables

This section is empty.

Functions

func NewAPIKeyAuthorizer

func NewAPIKeyAuthorizer(key, value, in apiKeyType) modifier.Modifier

NewAPIKeyAuthorizer returns a apikey authorizer

func NewAuthorizer

func NewAuthorizer(username, password string, insecure bool) lib.Authorizer

NewAuthorizer creates an authorizer instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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