errors

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoBackendsConfigured                    = errors.New("no database backends configured")
	ErrUnknownService                          = errors.New("unknown service")
	ErrAllBackendConfigError                   = errors.New("configuration errors in all Database sections")
	ErrInvalidJSONPayload                      = errors.New("invalid JSON payload")
	ErrUnsupportedMediaType                    = errors.New("unsupported media type")
	ErrFeatureBackendServersMonitoringDisabled = errors.New("backend_server_monitoring not enabled")
	ErrMonitoringBackendServersEmpty           = errors.New("no monitoring backend servers configured")
	ErrInvalidUsername                         = errors.New("invalid username")
	ErrPasswordEncoding                        = errors.New("password encoding error")
)
View Source
var (
	ErrWrongVerboseLevel = errors.New("wrong verbose level")
	ErrWrongLDAPScope    = errors.New("wrong LDAP scope")
	ErrWrongPassDB       = errors.New("wrong passdb backend")
	ErrWrongFeature      = errors.New("wrong feature")
	ErrWrongDebugModule  = errors.New("wrong debug module")
)
View Source
var (
	ErrNoLDAPSection          = errors.New("no 'ldap:' section found")
	ErrNoLDAPSearchSection    = errors.New("no 'ldap::search:' section found")
	ErrNoLDAPConfig           = errors.New("no 'ldap::config:' section found")
	ErrNoLDAPServerURIs       = errors.New("no 'ldap::config::server_uri' definition")
	ErrBruteForceTooManyRules = errors.New("too many rules in 'user'account' section")
	ErrCSRFSecretWrongSize    = errors.New("csrf secret must exactly be 32 bytes long")
	ErrCookieStoreAuthSize    = errors.New("cookie store auth key must exactly be 32 bytes")
	ErrCookieStoreEncSize     = errors.New("cookie store encryption key must exactly be 16, 24 or 32 bytes")
	ErrNoPasswordNonce        = errors.New("no 'password_nonce' defined")
	ErrNoLuaScriptPath        = errors.New("no 'lua::config:script_path' definition")
	ErrRedisDatabaseNumber    = errors.New("server::redis::datavase_number must be >= 0 and < 15")
	ErrRedisPoolSize          = errors.New("server::redis::pool_size must be > 0")
)
View Source
var (
	ErrLDAPConnect        = NewDetailedError("ldap_servers_connect_error")
	ErrLDAPConfig         = NewDetailedError("ldap_config_error")
	ErrNoLDAPSearchResult = NewDetailedError("ldap_no_search_result")
	ErrLDAPConnectTimeout = NewDetailedError("ldap_connect_timeout")
)
View Source
var (
	ErrLuaConfig               = NewDetailedError("lua_config_error")
	ErrBackendLuaWrongUserData = NewDetailedError("wrong_user_data_result")
	ErrBackendLua              = NewDetailedError("script_execution_failed")
)
View Source
var (
	ErrUnsupportedAlgorithm      = errors.New("unsupported hash algorithm")
	ErrUnsupportedPasswordOption = errors.New("unsupported password option")
)
View Source
var (
	ErrNoPassDBResult = errors.New("no pass Database result")
	ErrUnknownCause   = errors.New("something went wrong")
)
View Source
var (
	ErrRuleNoName             = errors.New("missing 'name' field in rule")
	ErrRuleNoIPv4AndIPv6      = errors.New("do not set 'ipv4' and 'ipv6' at the same time in a rule")
	ErrRuleMissingIPv4AndIPv6 = errors.New("neither 'ipv4' nor 'ipv6' specified in rule")
	ErrRuleNoCIDR             = errors.New("missing 'cidr' in rule")
	ErrRuleNoPeriod           = errors.New("missing 'period' in rule")
	ErrRuleNoFailedRequests   = errors.New("missing 'failed_requests' in rule")
	ErrWrongIPAddress         = errors.New("unable to parse IP address")
)
View Source
var (
	ErrNoLoginChallenge = errors.New("missing login challenge")
	ErrNoAccount        = errors.New("no account found")
	ErrUnknownJSON      = errors.New("unable to parse JSON response")
	ErrHTTPRequestGone  = errors.New("http request gone")
	ErrHydraNoClientId  = errors.New("no client_id returned from hydra server")
	ErrNoTLS            = errors.New("no tls connection")
	ErrTOTPCodeInvalid  = errors.New("totp code invalid")
	ErrNoTOTPCode       = errors.New("totp code not found")
	ErrBruteForceAttack = errors.New("please contact the support")
)
View Source
var (
	ErrLanguageNotFound = errors.New("requested language not found")
	ErrUnauthorized     = errors.New("unauthorized")
)
View Source
var (
	ErrNotLoggedIn = errors.New("user not logged in")
	ErrNoTOTPURL   = errors.New("no TOTP URL found")
)
View Source
var (
	ErrWebAuthnSessionData    = errors.New("no webauthn session data found")
	ErrNoDisplayName          = errors.New("no display name found")
	ErrUnknownDatabaseBackend = errors.New("unknown Database backend")
)
View Source
var (
	ErrFeatureLuaNameMissing     = errors.New("feature 'name' sttribute missing")
	ErrFeatureLuaScriptPathEmpty = errors.New("feature 'script_path' attribute missing")
)
View Source
var (
	ErrNoFiltersDefined         = errors.New("no filters defined")
	ErrFilterLuaNameMissing     = errors.New("filter 'name' sttribute missing")
	ErrFilterLuaScriptPathEmpty = errors.New("filter 'script_path' attribute missing")
)
View Source
var (
	ErrDNSResolver = errors.New("resolver failed")
)

Functions

This section is empty.

Types

type DetailedError

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

func NewDetailedError

func NewDetailedError(err string) *DetailedError

func (*DetailedError) Error

func (d *DetailedError) Error() string

func (*DetailedError) GetDetails

func (d *DetailedError) GetDetails() string

func (*DetailedError) GetGUID

func (d *DetailedError) GetGUID() string

func (*DetailedError) GetInstance

func (d *DetailedError) GetInstance() string

func (*DetailedError) WithDetail

func (d *DetailedError) WithDetail(detail string) *DetailedError

func (*DetailedError) WithGUID

func (d *DetailedError) WithGUID(guid string) *DetailedError

func (*DetailedError) WithInstance

func (d *DetailedError) WithInstance(instance string) *DetailedError

Jump to

Keyboard shortcuts

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