auth

package
v1.0.29 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

func NewAuthenticator

func NewAuthenticator(store *redis.Redis, key string, strict bool) (*Authenticator, error)

func (*Authenticator) Authenticate

func (a *Authenticator) Authenticate(ctx context.Context) error

type Credential

type Credential struct {
	App   string
	Token string
}

func ParseCredential

func ParseCredential(ctx context.Context) Credential

func (*Credential) GetRequestMetadata

func (c *Credential) GetRequestMetadata(context.Context, ...string) (map[string]string, error)

func (*Credential) RequireTransportSecurity

func (c *Credential) RequireTransportSecurity() bool

Jump to

Keyboard shortcuts

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