21 lines
382 B
Go
21 lines
382 B
Go
package bolt
|
|
|
|
import (
|
|
"github.com/asdine/storm/v3"
|
|
|
|
"github.com/filebrowser/filebrowser/v2/auth"
|
|
"github.com/filebrowser/filebrowser/v2/settings"
|
|
)
|
|
|
|
type authBackend struct {
|
|
db *storm.DB
|
|
}
|
|
|
|
func (s authBackend) Get(t settings.AuthMethod) (auth.Auther, error) {
|
|
return &auth.SSOAuth{}, nil
|
|
}
|
|
|
|
func (s authBackend) Save(a auth.Auther) error {
|
|
return save(s.db, "auther", a)
|
|
}
|