netauth

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(modName, instName string, _, inlineArgs []string) (module.Module, error)

New creates a new instance of the NetAuth module.

Types

type Auth

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

Auth binds all methods related to the NetAuth client library.

func (*Auth) AuthPlain

func (a *Auth) AuthPlain(username, password string) error

AuthPlain attempts straightforward authentication of the entity on the remote NetAuth server.

func (*Auth) Init

func (a *Auth) Init(cfg *config.Map) error

Init performs deferred initialization actions.

func (*Auth) InstanceName

func (a *Auth) InstanceName() string

InstanceName returns the configured name for this instance of the plugin. Given the way that NetAuth works it doesn't really make sense to have more than one instance, but this is part of the API.

func (*Auth) Lookup

func (a *Auth) Lookup(ctx context.Context, username string) (string, bool, error)

Lookup requests the entity from the remote NetAuth server, potentially returning that the user does not exist at all.

func (*Auth) Name

func (a *Auth) Name() string

Name returns "auth.netauth" as the fixed module name.

Jump to

Keyboard shortcuts

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