token_helper

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenValidator

type TokenValidator interface {
	Validate(token string) (*identityd2_pb.Token, error)
}

func NewTokenValidator

func NewTokenValidator(
	tknr Tokener,
	cli_fty *client_helper.ClientFactory,
	logger log.FieldLogger) TokenValidator

type Tokener

type Tokener interface {
	GetToken() string
}

func NewNoExpireTokener

func NewNoExpireTokener(cli_fty *client_helper.ClientFactory, credential_domain, credential_id, credential_secret string) (Tokener, error)

func NewTokener

func NewTokener(cli_fty *client_helper.ClientFactory, credential_domain, credential_id, credential_secret string) (Tokener, error)

Jump to

Keyboard shortcuts

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