Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions model/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type ConnectToken struct {
Asset Asset `json:"asset"`
Protocol string `json:"protocol"`
Domain *Domain `json:"domain"`
Zone *Domain `json:"zone"`
Gateway *Gateway `json:"gateway"`
Comment on lines 15 to 17
ExpireAt ExpireInfo `json:"expire_at"`
OrgId string `json:"org_id"`
Expand All @@ -24,9 +25,10 @@ type ConnectToken struct {
ConnectOptions ConnectOptions `json:"connect_options"`

CommandFilterACLs []CommandACL `json:"command_filter_acls"`


ClipboardPolicy *ClipboardPolicy `json:"clipboard_policy"`
DataMaskingRules []DataMaskingRule `json:"data_masking_rules"`

Ticket *ObjectId `json:"from_ticket,omitempty"`
TicketInfo interface{} `json:"from_ticket_info,omitempty"`
FaceMonitorToken string `json:"face_monitor_token,omitempty"`
Expand Down Expand Up @@ -71,6 +73,20 @@ type ConnectTokenInfo struct {
Detail string `json:"detail,omitempty"`
}

type ClipboardPolicy struct {
Copy *ClipboardPolicyItem `json:"copy"`
Paste *ClipboardPolicyItem `json:"paste"`
}

type ClipboardPolicyItem struct {
Enabled bool `json:"enabled"`
Action string `json:"action"`
PermAllowed bool `json:"perm_allowed"`
ACLAction *string `json:"acl_action"`
TextLimit int `json:"text_limit"`
FileSizeLimit int `json:"file_size_limit"`
}

const (
ACLReview = "acl_review"
ACLReject = "acl_reject"
Expand Down