auth

package
v3.0.0-...-c77a060 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: MIT Imports: 11 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
}

Authenticator is an object which is temporarily created during the authentication phase of the client (i.e. during with.Auth) and is responsible for making requests to the auth server, making sure the user is logged in as who they want to be, performing impersonation, and prompting the user for any missing credentials. TODO(telyn): ensure prompts / output comes out on app.ErrWriter.

func NewAuthenticator

func NewAuthenticator(client lib.Client, config config.Manager) Authenticator

NewAuthenticator creates a new authenticator which will prompt on stderr (expecting input on stdin) and using speakeasy for password prompts.

func (Authenticator) Authenticate

func (a Authenticator) Authenticate() error

Authenticate performs authentication, checks and impersonation.

Jump to

Keyboard shortcuts

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