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.
Click to show internal directories.
Click to hide internal directories.