summaryrefslogtreecommitdiff
path: root/internal/authentication/user_provider.go
blob: 516345d1536ed62c45ded85c9b23a5cb31a12e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package authentication

import (
	"github.com/authelia/authelia/v4/internal/model"
)

// UserProvider is the interface for checking user password and
// gathering user details.
type UserProvider interface {
	model.StartupCheck

	CheckUserPassword(username, password string) (valid bool, err error)
	GetDetails(username string) (details *UserDetails, err error)
	GetDetailsExtended(username string) (details *UserDetailsExtended, err error)
	UpdatePassword(username, newPassword string) (err error)
	Shutdown() (err error)
}