auth

package
v1.2.23 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BasicStore basicstore.Store

BasicStore stores explicitly set BASIC authorization headers

Functions

This section is empty.

Types

type Token

type Token interface {
	Method() string
	String() string
	ExpiresIn() int
}

Token is an abstraction for aggregated token-related information we get from authentication services

func NewToken

func NewToken(url, username, password, scope string) (Token, error)

NewToken creates a new instance of Token in two steps: * detects authentication type ("Bearer", "Basic" or "None") * delegates actual authentication to the type-specific implementation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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