refactor(auth): delegate access control to be-system
Remove Agent Desk users, roles, login sessions, tokens, and local permission persistence. Expose the backend as an embeddable ai-agent module with host-provided subject lookup and operation authorization callbacks, and complete the frontend/backend repository split.
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
package bootstrap
|
||||
|
||||
import (
|
||||
"agent-desk/internal/ai/rag/vectordb"
|
||||
"agent-desk/internal/oidcclient"
|
||||
"agent-desk/internal/pkg/config"
|
||||
"agent-desk/internal/pkg/i18nx"
|
||||
"agent-desk/internal/pkg/logx"
|
||||
"agent-desk/internal/services/cronx"
|
||||
"agent-desk/internal/wxwork"
|
||||
"context"
|
||||
"code.tczkiot.com/wlw/ai-agent/internal/ai/rag/vectordb"
|
||||
"code.tczkiot.com/wlw/ai-agent/internal/pkg/config"
|
||||
"code.tczkiot.com/wlw/ai-agent/internal/pkg/i18nx"
|
||||
"code.tczkiot.com/wlw/ai-agent/internal/pkg/logx"
|
||||
"code.tczkiot.com/wlw/ai-agent/internal/services/cronx"
|
||||
"code.tczkiot.com/wlw/ai-agent/internal/wxwork"
|
||||
"log/slog"
|
||||
|
||||
_ "agent-desk/internal/services/event_handlers"
|
||||
_ "code.tczkiot.com/wlw/ai-agent/internal/services/event_handlers"
|
||||
)
|
||||
|
||||
func Init(configPath string) error {
|
||||
@@ -46,9 +44,5 @@ func Init(configPath string) error {
|
||||
cronx.Init()
|
||||
|
||||
wxwork.Init()
|
||||
if err := oidcclient.Init(context.Background()); err != nil {
|
||||
slog.Error("init oidc failed", "error", err)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user