feat: add SSO workspace, named shares and Debian release tooling

This commit is contained in:
SantaSpeen committed 2026-10-21 20:57:44 +03:00
1 parent 833d908884
commit 87bc33e675
106 files changed
+4160 -5637

No files matched your search

+1 -17
View File
@@ -4,7 +4,6 @@ import (
"github.com/asdine/storm/v3"
"github.com/filebrowser/filebrowser/v2/auth"
fberrors "github.com/filebrowser/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/settings"
)
@@ -13,22 +12,7 @@ type authBackend struct {
}
func (s authBackend) Get(t settings.AuthMethod) (auth.Auther, error) {
var auther auth.Auther
switch t {
case auth.MethodJSONAuth:
auther = &auth.JSONAuth{}
case auth.MethodProxyAuth:
auther = &auth.ProxyAuth{}
case auth.MethodHookAuth:
auther = &auth.HookAuth{}
case auth.MethodNoAuth:
auther = &auth.NoAuth{}
default:
return nil, fberrors.ErrInvalidAuthMethod
}
return auther, get(s.db, "auther", auther)
return &auth.SSOAuth{}, nil
}
func (s authBackend) Save(a auth.Auther) error {