2019-01-06 06:44:33 +08:00
|
|
|
package auth
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2019-01-06 21:01:42 +08:00
|
|
|
"github.com/filebrowser/filebrowser/v2/settings"
|
2019-01-06 06:44:33 +08:00
|
|
|
"github.com/filebrowser/filebrowser/v2/users"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Auther is the authentication interface.
|
|
|
|
type Auther interface {
|
|
|
|
// Auth is called to authenticate a request.
|
2019-01-06 21:01:42 +08:00
|
|
|
Auth(*http.Request, *users.Storage, *settings.Settings) (*users.User, error)
|
2019-01-06 06:44:33 +08:00
|
|
|
}
|