authentication

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 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

func (*Config) Validate

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

type GenericConfig

type GenericConfig struct {
	GenericAuthIsEnable bool
	URL                 string
	Method              string
	Scheme              string
	InsecureSkipVerify  bool
	TLSCert             string
	TLSKey              string
}

type GitHubConfig

type GitHubConfig struct {
	GitHubIsEnable bool
	ClientID       string
	ClientSecret   string
}

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
jwt

Jump to

Keyboard shortcuts

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