auth

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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