2019-01-05 22:44:33 +00:00
|
|
|
package auth
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/filebrowser/filebrowser/v2/users"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Auther is the authentication interface.
|
|
|
|
type Auther interface {
|
|
|
|
// Auth is called to authenticate a request.
|
2019-01-07 20:34:44 +00:00
|
|
|
Auth(r *http.Request, s *users.Storage, root string) (*users.User, error)
|
2019-01-05 22:44:33 +00:00
|
|
|
}
|