authentication

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentAuthenticator

type AgentAuthenticator struct{}

AgentIdentityProvider performs authentication for machine and unit agents.

func (*AgentAuthenticator) Authenticate

func (*AgentAuthenticator) Authenticate(entity state.Entity, password, nonce string) error

Authenticate authenticates the provided entity and returns an error on authentication failure.

type EntityAuthenticator

type EntityAuthenticator interface {
	// Authenticate authenticates the given entity
	Authenticate(entity state.Entity, password, nonce string) error
}

EntityAuthenticator is the interface all entity authenticators need to implement to authenticate juju entities.

func FindEntityAuthenticator

func FindEntityAuthenticator(entity state.Entity) (EntityAuthenticator, error)

FindEntityAuthenticator looks up the authenticator for the entity identified tag.

type UserAuthenticator

type UserAuthenticator struct {
	AgentAuthenticator
}

UserIdentityProvider performs authentication for users.

func (*UserAuthenticator) Authenticate

func (u *UserAuthenticator) Authenticate(entity state.Entity, password, nonce string) error

Authenticate authenticates the provided entity and returns an error on authentication failure.

Jump to

Keyboard shortcuts

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