authenticator

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	JwtConfig
	LdapConfig
}

func (*Config) Validate

func (c *Config) Validate() []error

type JwtConfig

type JwtConfig struct {
	JwtSecret           string `yaml:"jwtSecret,omitempty"`
	TokenExpireDuration int64  `yaml:"tokenExpireDuration, omitempty"`
	JwtIssuer           string `yaml:"jwtIssuer,omitempty"`
}

type LdapConfig

type LdapConfig struct {
	LdapObjectClass      string `yaml:"ldapObjectClass,omitempty"`
	LdapLoginNameConfig  string `yaml:"ldapLoginNameConfig,omitempty"`
	LdapObjectCategory   string `yaml:"ldapObjectCategory, omitempty"`
	LdapServer           string `yaml:"ldapServer, omitempty"`
	LdapPort             string `yaml:"ldapPort, omitempty"`
	LdapBaseDN           string `yaml:"ldapBaseDN, omitempty"`
	LdapAdminUserAccount string `yaml:"ldapAdminUserAccount, omitempty"`
	LdapAdminPassword    string `yaml:"ldapAdminPassword, omitempty"`
	LdapIsEnable         bool   `yaml:"ldapIsEnable, omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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