authentication

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInteractor

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

NewInteractor returns a new Interactor.

func NewNotSupportedInteractor

func NewNotSupportedInteractor() httpbakery.Interactor

NewNotSupportedInteractor returns an interactor that does not support any discharge workflow.

Types

type Interactor

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

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

func (Interactor) Interact

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

func (i Interactor) Kind() string

Kind implements httpbakery.Interactor.Kind.

func (*Interactor) LegacyInteract

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

LegacyInteract implements httpbakery.LegacyInteractor for the Interactor.

Jump to

Keyboard shortcuts

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