auth

package
v0.0.0-...-5d7ca49 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidPassword = fmt.Errorf("Invalid password")
View Source
var ErrInvalidUserName = fmt.Errorf("Invalid user name")

Functions

This section is empty.

Types

type AuthCredentials

type AuthCredentials struct {
	UserName string
	Password string
}

type IAuthProvider

type IAuthProvider interface {
	Login(credentials *AuthCredentials) error
}

IAuthProvider describes a provider of authentication services, such as Basic, LDAP, etc...

type IPasswordService

type IPasswordService interface {
	IsPasswordValid(password, storedPassword []byte) bool
}

IPasswordService is an interface for validating passwords

Jump to

Keyboard shortcuts

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