authn

package
v0.0.0-...-20af522 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInfo

type AccountInfo interface {
	// Name returns the name that uniquely identifies this user among all other
	// active users.
	Name() string

	// UID returns a unique value for a particular account that will change if
	// the account is removed from the system and another account is added with
	// the same name.
	UID() string

	// Groups returns the names of the groups the user is a member of.
	Groups() []string
}

AccountInfo is an interface for exposing account information.

type TokenAuthenticator

type TokenAuthenticator interface {
	AuthenticateToken(token string) (AccountInfo, bool, error)
}

TokenAuthenticator is an interface for authenticating requests to the server.

Jump to

Keyboard shortcuts

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