Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enable ¶
func Enable(client authenticateconnect.BaseClient) typ.TypeConfig
Types ¶
type Argon2id ¶
type Argon2id struct { Time uint32 `json:"time"` Memory uint32 `json:"memory"` Threads uint8 `json:"threads"` KeyLen uint32 `json:"key_len"` SaltLen uint32 `json:"salt_len"` }
func (*Argon2id) CheckPassword ¶
func (*Argon2id) GenerateHash ¶
type AuthenticateData ¶
type AuthenticateData struct { Type string `json:"type"` Plain *Plain `json:"plain"` Argon2id *Argon2id `json:"argon2id"` Bcrypt *Bcrypt `json:"bcrypt"` Scrypt *Scrypt `json:"scrypt"` }
func ParseData ¶
func ParseData(val *authenticate.Authenticate) (*AuthenticateData, error)
func (*AuthenticateData) Password ¶
func (a *AuthenticateData) Password() Password
Click to show internal directories.
Click to hide internal directories.