Documentation ¶
Index ¶
- func DigestToAuthMethod(digest string) (int, error)
- func DigestToHashMethod(digest string) (int, int, func() hash.Hash, error)
- func HashPassword(digest string, iterations int, salt string, password string) (string, error)
- func RegisterAuthenticationMethod(m AuthenticateMethod)
- type AuthFile
- type AuthHTTP
- type AuthManager
- type AuthenticateMethod
- type Pbkdf2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DigestToAuthMethod ¶
func DigestToHashMethod ¶
func HashPassword ¶
func RegisterAuthenticationMethod ¶
func RegisterAuthenticationMethod(m AuthenticateMethod)
Types ¶
type AuthFile ¶
type AuthFile struct {
// contains filtered or unexported fields
}
func (*AuthFile) AuthenticateUser ¶
func (*AuthFile) GetMethodName ¶
func (*AuthFile) Initialize ¶
func (*AuthFile) LoadCredentialsFromFile ¶
type AuthHTTP ¶
type AuthHTTP struct {
// contains filtered or unexported fields
}
func (*AuthHTTP) AuthenticateUser ¶
func (*AuthHTTP) GetMethodName ¶
func (*AuthHTTP) Initialize ¶
func (*AuthHTTP) LoadCredentialsFromHTTP ¶
type AuthManager ¶
type AuthManager struct {
// contains filtered or unexported fields
}
var AuthMgr AuthManager
func (*AuthManager) AuthenticateUser ¶
func (m *AuthManager) AuthenticateUser(userId string, userPassword string) (bool, error)
func (*AuthManager) Finalize ¶ added in v1.5.0
func (m *AuthManager) Finalize()
func (*AuthManager) Initialize ¶
func (m *AuthManager) Initialize(logger *zap.Logger, c *config.AuthConfig) error
type AuthenticateMethod ¶
type Pbkdf2 ¶
type Pbkdf2 struct {
// contains filtered or unexported fields
}
func HashedPasswordToPbkdf2 ¶
Click to show internal directories.
Click to hide internal directories.