auth_providers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAuthProviderConfigHcl

func LoadAuthProviderConfigHcl(list *ast.ObjectList, providers *map[string]AuthProviderConfig) error

Types

type AuthProviderConfig

type AuthProviderConfig interface {
	Type() string
}

type KeePassAuthProviderConfig

type KeePassAuthProviderConfig struct {
	DbPath           string `mapstructure:"db_path,"`
	UnlockCredential string `mapstructure:"unlock_credential,"`
}

func (*KeePassAuthProviderConfig) Type

type StaticAuthConfig

type StaticAuthConfig struct {
	Username   string            `mapstructure:"username,"`
	Password   string            `mapstructure:"password,"`
	Attributes map[string]string `mapstructure:"attributes,"`
}

StaticAuthConfig represents a auth configuration block within a auth_provider "static" "..." {} block.

type StaticAuthProviderConfig

type StaticAuthProviderConfig struct {
	Auths map[string]*StaticAuthConfig
}

func (*StaticAuthProviderConfig) Type

func (t *StaticAuthProviderConfig) Type() string

Jump to

Keyboard shortcuts

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