Documentation
¶
Index ¶
Constants ¶
View Source
const DIGITS = 6
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
type AuthProvider struct {
// contains filtered or unexported fields
}
func NewAuthProvider ¶
func NewAuthProvider(enabled bool, users, groups, counters string, window uint64) (*AuthProvider, error)
func (*AuthProvider) Authorize ¶
func (a *AuthProvider) Authorize(resource, action, uid string) error
func (*AuthProvider) Cards ¶
func (a *AuthProvider) Cards(uid string) []string
func (*AuthProvider) Enabled ¶
func (a *AuthProvider) Enabled() bool
func (*AuthProvider) VerifyHOTP ¶
func (a *AuthProvider) VerifyHOTP(uid, otp string) error
func (*AuthProvider) VerifyPassword ¶
func (a *AuthProvider) VerifyPassword(uid, pwd string) error
Click to show internal directories.
Click to hide internal directories.