2019-01-05 22:44:33 +00:00
|
|
|
package auth
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2019-01-06 13:01:42 +00:00
|
|
|
"github.com/filebrowser/filebrowser/v2/settings"
|
2019-01-05 22:44:33 +00: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 13:01:42 +00:00
|
|
|
Auth(*http.Request, *users.Storage, *settings.Settings) (*users.User, error)
|
2019-01-05 22:44:33 +00:00
|
|
|
}
|