auth

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ClientCredentials is for "client_credentials"
	ClientCredentials grantType = "client_credentials"
)

Functions

func New

New will create instance of authenticator using provided Config

Types

type Config

type Config struct {
	Logger    logrus.FieldLogger
	Validator access.Validator
	GrantType grantType

	// Other fields could be added for different grant types
	ClientID     string
	ClientSecret string
}

Config is used to provide dependencies to New() and create Authenticator instance

Jump to

Keyboard shortcuts

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