juju: github.com/juju/juju/api/authentication Index | Files

package authentication

import "github.com/juju/juju/api/authentication"

Index

Package Files

interactor.go

func NewInteractor Uses

func NewInteractor(username string, getPassword func(string) (string, error)) httpbakery.Interactor

NewInteractor returns a new Interactor.

type Interactor Uses

type Interactor struct {
    // contains filtered or unexported fields
}

Visitor is a httpbakery.Visitor that will login directly to the Juju controller using password authentication. This only applies when logging in as a local user.

func (Interactor) Interact Uses

func (i Interactor) Interact(ctx context.Context, client *httpbakery.Client, location string, interactionRequiredErr *httpbakery.Error) (*httpbakery.DischargeToken, error)

Interact implements httpbakery.Interactor for the Interactor.

func (Interactor) Kind Uses

func (i Interactor) Kind() string

Kind implements httpbakery.Interactor.Kind.

func (*Interactor) LegacyInteract Uses

func (i *Interactor) LegacyInteract(ctx context.Context, client *httpbakery.Client, location string, methodURL *url.URL) error

LegacyInteract implements httpbakery.LegacyInteractor for the Interactor.

Package authentication imports 8 packages (graph) and is imported by 32 packages. Updated 2020-08-13. Refresh now. Tools for package owners.