2019-04-25 04:52:08 +07:00
|
|
|
package authentication
|
|
|
|
|
2021-09-17 16:53:59 +07:00
|
|
|
import (
|
2022-03-06 12:47:40 +07:00
|
|
|
"github.com/authelia/authelia/v4/internal/model"
|
2021-09-17 16:53:59 +07:00
|
|
|
)
|
|
|
|
|
2019-04-25 04:52:08 +07:00
|
|
|
// UserProvider is the interface for checking user password and
|
|
|
|
// gathering user details.
|
|
|
|
type UserProvider interface {
|
2022-03-06 12:47:40 +07:00
|
|
|
model.StartupCheck
|
2021-11-23 16:45:38 +07:00
|
|
|
|
2021-09-17 16:53:59 +07:00
|
|
|
CheckUserPassword(username string, password string) (valid bool, err error)
|
|
|
|
GetDetails(username string) (details *UserDetails, err error)
|
|
|
|
UpdatePassword(username string, newPassword string) (err error)
|
2019-04-25 04:52:08 +07:00
|
|
|
}
|