feat: add OIDC login support
- Introduced OIDC configuration options in config.example.yaml. - Added OIDC client initialization and routes for OIDC login, callback, and exchange. - Implemented OIDC login service to handle user authentication via OIDC. - Created frontend components for OIDC login and callback handling. - Updated user creation logic to support OIDC users and their identities. - Enhanced error handling for OIDC login processes.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package bootstrap
|
||||
|
||||
import (
|
||||
"context"
|
||||
"cs-agent/internal/ai/rag/vectordb"
|
||||
"cs-agent/internal/oidcclient"
|
||||
"cs-agent/internal/pkg/config"
|
||||
"cs-agent/internal/pkg/logx"
|
||||
"cs-agent/internal/services/cronx"
|
||||
@@ -42,5 +44,9 @@ 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