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