Documentation
¶
Index ¶
- Constants
- func AuthFailed(c *xin.Context)
- func AuthPassed(c *xin.Context)
- func AuthUser(c *xin.Context) *models.User
- func BasicAuthFailed(c *xin.Context)
- func BasicAuthPassed(c *xin.Context)
- func CheckClientAndFindUser(c *xin.Context, username string) (xmw.AuthUser, error)
- func CheckClientIP(c *xin.Context, u *models.User) bool
- func Create(name string, comment string) error
- func DeleteAuthUser(c *xin.Context)
- func FindUser(c *xin.Context, username string) (xmw.AuthUser, error)
- func GetAuthUser(c *xin.Context) *models.User
- func GetSubdomain(c *xin.Context) (string, bool)
- func IsClientBlocked(c *xin.Context) bool
- func IsHostnameError(err error) bool
- func IsMultiTenant() bool
- func Iterate(itf func(tt *Tenant) error) error
- type HostnameError
- type PasswordPolicy
- type Tenant
- func (tt *Tenant) CacheUser(u *models.User)
- func (tt *Tenant) ConfigMap() map[string]string
- func (tt *Tenant) ConfigValue(k string) string
- func (tt *Tenant) ConfigValues(k string) []string
- func (tt *Tenant) FindUser(username string) (xmw.AuthUser, error)
- func (tt *Tenant) GetCIDRs() []*net.IPNet
- func (tt *Tenant) GetPasswordPolicy(loc string) *PasswordPolicy
- func (tt *Tenant) IsSAMLLogin() bool
- func (tt *Tenant) RevokeUser(username string)
- func (tt *Tenant) ValidatePassword(loc, pwd string) []string
Constants ¶
View Source
const ( AuthMethodPassword = "P" AuthMethodSSOSaml = "S" )
View Source
const TENANT_CTXKEY = "TENANT"
Variables ¶
This section is empty.
Functions ¶
func AuthFailed ¶
func AuthPassed ¶
func BasicAuthFailed ¶
func BasicAuthPassed ¶
func CheckClientAndFindUser ¶
func DeleteAuthUser ¶
func IsClientBlocked ¶
func IsHostnameError ¶
func IsMultiTenant ¶
func IsMultiTenant() bool
Types ¶
type HostnameError ¶
type HostnameError struct {
// contains filtered or unexported fields
}
func (*HostnameError) Error ¶
func (he *HostnameError) Error() string
type PasswordPolicy ¶
type PasswordPolicy struct { Locale string MinLength int MaxLength int Strengths []string Strengthm *linkedhashmap.LinkedHashMap[string, string] }
func (*PasswordPolicy) ValidatePassword ¶
func (pp *PasswordPolicy) ValidatePassword(pwd string) (vs []string)
type Tenant ¶
func (*Tenant) ConfigValue ¶
func (*Tenant) ConfigValues ¶
func (*Tenant) GetPasswordPolicy ¶
func (tt *Tenant) GetPasswordPolicy(loc string) *PasswordPolicy
func (*Tenant) IsSAMLLogin ¶
func (*Tenant) RevokeUser ¶
func (*Tenant) ValidatePassword ¶
Click to show internal directories.
Click to hide internal directories.