Files
ai-agent/internal/pkg/openidentity/openidentity.go
T
t 2bbf42b741 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.
2026-08-21 00:41:07 +08:00

13 lines
508 B
Go

package openidentity
import "code.tczkiot.com/wlw/ai-agent/internal/pkg/enums"
// ExternalUser is a be-system user identity adapted for customer-service
// conversations. Authentication is completed by the host before this value is
// created; this package contains no token parsing or verification.
type ExternalUser struct {
ExternalSource enums.ExternalSource `json:"externalSource"`
ExternalID string `json:"externalId"`
ExternalName string `json:"externalName"`
}