2019-04-24 21:52:08 +00:00
|
|
|
package authentication
|
|
|
|
|
2021-09-17 09:53:59 +00:00
|
|
|
import (
|
2021-11-23 09:45:38 +00:00
|
|
|
"github.com/authelia/authelia/v4/internal/models"
|
2021-09-17 09:53:59 +00:00
|
|
|
)
|
|
|
|
|
2019-04-24 21:52:08 +00:00
|
|
|
// UserProvider is the interface for checking user password and
|
|
|
|
// gathering user details.
|
|
|
|
type UserProvider interface {
|
2021-11-23 09:45:38 +00:00
|
|
|
models.StartupCheck
|
|
|
|
|
2021-09-17 09:53:59 +00: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-24 21:52:08 +00:00
|
|
|
}
|