auth

package
v0.0.0-...-bb6c115 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LdapCredentials

type LdapCredentials struct {
	Username string
	Password string
}

LdapCredentials ...

func (LdapCredentials) Get

func (l LdapCredentials) Get() (interface{}, error)

Get ... just returns itself on calls to Get()

type LdapPlugin

type LdapPlugin struct {
	Credentials VaultCredentials
	VaultURL    string
}

LdapPlugin ..

func (*LdapPlugin) Auth

func (l *LdapPlugin) Auth(credential VaultCredentials) (string, error)

Auth ...

func (*LdapPlugin) GetCredentials

func (l *LdapPlugin) GetCredentials(req *http.Request) (VaultCredentials, error)

GetCredentials ...

type VaultAuthenticator

type VaultAuthenticator interface {
	Auth(credential VaultCredentials) (string, error)
	GetCredentials(req *http.Request) (VaultCredentials, error)
}

VaultAuthenticator ... Interface for vault authenticators

type VaultCredentials

type VaultCredentials interface {
	Get() (interface{}, error)
}

VaultCredentials ... Interface for credentials for vault

Jump to

Keyboard shortcuts

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