identity

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAuthenticationFailed = errors.New("authentication failed")

Functions

This section is empty.

Types

type Identity

type Identity struct {
	ID       string
	Tenant   string
	Domain   string
	Provider string
}

type Provider

type Provider interface {
	CanHandle(*types.ProtocolContext, *types.TransportContext) bool
	Authenticate(*types.ProtocolContext, *types.TransportContext) (*Identity, error)
}

func NewStaticProvider

func NewStaticProvider(value, token string) Provider

func NewStaticVaultProvider

func NewStaticVaultProvider(api *vault.Client, value string) Provider

Jump to

Keyboard shortcuts

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