credential

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BasicPrefix is the prefix for the HTTP basic authentication.
	BasicPrefix = "Basic "
	// TokenPrefix is the prefix for the HTTP token/bearer authentication.
	TokenPrefix = "Bearer "
)

Variables

View Source
var Manager = new(manager)

Manager handle login/logout handlers.

Functions

This section is empty.

Types

type Config

type Config struct {
	URI string `yaml:"URI"`
	// Can take the form of:
	// - "Basic <base64 encoded username:passwd>"
	// - "Bearer <token>"
	// An empty value means there no authentication at all
	// or that credentials are stored elsewhere
	Auth     string `yaml:"Auth,omitempty"`
	Insecure bool   `yaml:"Insecure"`
}

Config holds credential configuration for a service.

Jump to

Keyboard shortcuts

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