Documentation
¶
Overview ¶
Package controlpanel owns administrator credentials and project access policy. It never observes or starts local harness processes.
Index ¶
- Variables
- func New(store *Store, backend Backend, next http.Handler, version ...string) http.Handler
- func NewWithTrustedProxies(store *Store, backend Backend, next http.Handler, proxies []netip.Prefix, ...) http.Handler
- type AnnouncementResult
- type AuditEvent
- type AuditFilter
- type AutoBinding
- type AutoExchange
- type Backend
- type DeviceAuthorization
- type DeviceRequest
- type DeviceResponse
- type DeviceTokenResponse
- type DeviceView
- type DirectProof
- type DirectRequest
- type DirectResponse
- type PendingRebind
- type Project
- type ProjectTokenOptions
- type ScopeIssuanceChange
- type Session
- func (s Session) ActivityTooltip(language string) []string
- func (s Session) ActivityTooltipTimes(language string) []activityTooltipTime
- func (s Session) ActivityView(language string) activityView
- func (s Session) ConnectionLabel() i18n.Message
- func (s Session) DisplayState() string
- func (s Session) RowKey() string
- func (s Session) RowShape(canManage bool, owner string) string
- func (s Session) RuntimeInfoView(language string) runtimeInfoView
- func (s Session) StateReason() i18n.Message
- type SessionToken
- type Store
- func (s *Store) AdminAPIEnabled() bool
- func (s *Store) AllowHTTP(project string) bool
- func (s *Store) AllowsUnauthenticated() bool
- func (s *Store) ApproveDeviceAuthorization(actor, code, nickname string, deny bool) (DeviceView, error)
- func (s *Store) AttachmentsEnabled() bool
- func (s *Store) Authenticate(password string) bool
- func (s *Store) AuthenticateUser(username, password string) (User, bool)
- func (s *Store) Authorize(project, token string) bool
- func (s *Store) BeginDeviceAuthorization(project, raw string, r DeviceRequest) (DeviceResponse, error)
- func (s *Store) BugReportPolicy(actor string) (map[string]string, func(), error)
- func (s *Store) CanManageSession(actor, project, identity string, recordedOwner ...string) bool
- func (s *Store) CanReleaseReservedGrant(actor, project, id string) bool
- func (s *Store) ChangeOwnPassword(actor, currentPassword, newPassword, confirmation string) error
- func (s *Store) CleanupDetachedAutoBatch(project, generation string, proofs []access.DetachedRemovalProof) error
- func (s *Store) Close() error
- func (s *Store) CreateProject(name string) error
- func (s *Store) CreateProjectFor(actor, name string) error
- func (s *Store) CreateUser(actor, username, password, role string) error
- func (s *Store) DeviceAuthorizationFor(actor, code string) (DeviceView, error)
- func (s *Store) DirectAuditFor(actor, project string) ([]AuditEvent, error)
- func (s *Store) DirectAuditRecordsFor(actor, project string, filter AuditFilter) ([]AuditEvent, error)
- func (s *Store) EditTokenScopesFor(actor, project, id string, scopes, version []string) (TokenScopeEdit, error)
- func (s *Store) ExchangeDeviceToken(project, raw, code, clientID string, plaintext bool) (DeviceTokenResponse, error)
- func (s *Store) ExchangeDirect(project, raw string, r DirectRequest, proof DirectProof, source string, ...) (DirectResponse, error)
- func (s *Store) ImportProjects(names []string) error
- func (s *Store) InstanceHTTPPolicy() bool
- func (s *Store) IssueOwnUserToken(actor string, revision uint64, label string, seconds int64, scopes []string, ...) (string, UserTokenView, error)
- func (s *Store) IssueProjectTokenFor(actor, project, label string) (string, error)
- func (s *Store) IssueProjectTokenWithOptionsFor(actor, project, label string, options ProjectTokenOptions) (string, error)
- func (s *Store) IssueToken(project, nickname string) (string, error)
- func (s *Store) IssueTokenFor(actor, project, nickname, ownerID string) (string, error)
- func (s *Store) ListOwnUserTokens(actor string) ([]UserTokenView, error)
- func (s *Store) PendingRebinds() []PendingRebind
- func (s *Store) PreviewTokenScopesFor(actor, project, id string, scopes, version []string) (TokenScopeEdit, error)
- func (s *Store) ProjectGeneration(project string) string
- func (s *Store) ProjectRole(actor, project string) string
- func (s *Store) Projects() []Project
- func (s *Store) ProjectsFor(actor string) []Project
- func (s *Store) Ready() bool
- func (s *Store) RecordSessionManagement(project, actor string, event protocol.ManagementEvent, ...) error
- func (s *Store) RecoverRebind(project string, j protocol.RebindJournal, result protocol.RebindResult, ...) error
- func (s *Store) RegistrationOwnerBindings() map[string]map[string]string
- func (s *Store) ReleaseDirectRegistration(project, identity string) error
- func (s *Store) RevokeOwnUserToken(actor, id string) error
- func (s *Store) RevokeOwnUserTokens(actor string) error
- func (s *Store) RevokeSessionTokens(project, nickname, identity string) error
- func (s *Store) RevokeToken(project, id string) error
- func (s *Store) RevokeTokenFor(actor, project, id string) error
- func (s *Store) RevokeUserTokensFor(actor, user, id string, all bool) error
- func (s *Store) SaveProject(name, mode string, enabled bool, token string) error
- func (s *Store) SaveProjectFor(actor, name, mode string, enabled bool, version ...string) error
- func (s *Store) SessionOwners(project string, sessions ...Session) map[string]string
- func (s *Store) SetAdminAPI(actor string, enabled bool, version ...string) error
- func (s *Store) SetAllowsUnauthenticated(actor string, allowed bool) error
- func (s *Store) SetAttachmentPolicy(actor string, enabled bool, version ...string) error
- func (s *Store) SetAttachmentStore(store *attachments.Store)
- func (s *Store) SetInstanceHTTPPolicy(actor string, allow bool, version ...string) error
- func (s *Store) SetProjectMember(actor, project, user, role string) error
- func (s *Store) SetScopeIssuanceReady(actor string, enabled bool, version ...string) error
- func (s *Store) Setup(password string) error
- func (s *Store) SetupWithCode(code, password string) error
- func (s *Store) SweepExpired() error
- func (s *Store) TokenScopeEditFor(actor, project, id string) (TokenScopeEdit, error)
- func (s *Store) TransportPolicy(project string) (bool, bool)
- func (s *Store) UpdateLanguage(actor, language string) error
- func (s *Store) UpdateProfile(actor, displayName, email string, version ...string) error
- func (s *Store) UpdateUser(actor, id, role string, enabled bool, password string, version ...string) error
- func (s *Store) User(id string) (User, bool)
- func (s *Store) UserLanguage(id string) string
- func (s *Store) UserTokensFor(actor, user string) ([]UserTokenView, error)
- func (s *Store) Users(actor string) ([]User, error)
- type TokenScopeAudit
- type TokenScopeEdit
- type User
- type UserTokenView
Constants ¶
This section is empty.
Variables ¶
var ( ErrSetupCode = errors.New("invalid setup code") ErrAlreadySetup = errors.New("administrator is already configured") ErrForbidden = errors.New("permission denied") ErrInvalid = errors.New("invalid configuration") ErrStorage = errors.New("control panel storage unavailable") )
var ErrNicknameReservedBound = fmt.Errorf("previously connected credential: %w", ErrNicknameTaken)
var ErrNicknameReservedUnbound = fmt.Errorf("unused credential: %w", ErrNicknameTaken)
var ErrNicknameTaken = errors.New("nickname already reserved")
var ErrTokenCap = errors.New("project active token limit reached (256); revoke unused tokens or detach old sessions before issuing or approving another token")
Functions ¶
Types ¶
type AnnouncementResult ¶
AnnouncementResult reports queue acceptance, never model receipt. Error is a machine code; the panel translates it.
func (AnnouncementResult) ErrorMessage ¶ added in v1.1.0
func (r AnnouncementResult) ErrorMessage() i18n.Message
ErrorMessage is the failure in the page's language; an unknown code reads as not accepted.
type AuditEvent ¶
type AuditEvent struct {
TokenScopes *TokenScopeAudit `json:"tokenScopes,omitempty"`
ProjectGenerationID string `json:"projectGenerationId,omitempty"`
Handover *protocol.HandoverAudit `json:"handover,omitempty"`
Management *protocol.ManagementEvent `json:"management,omitempty"`
Version int `json:"version"`
Project string `json:"project"`
ParentID string `json:"parentID"`
GrantID string `json:"grantID,omitempty"`
Binding string `json:"binding"` // one-way internal reference, never the raw identity
OwnerID string `json:"ownerID"`
Kind string `json:"kind"`
Reason string `json:"reason"`
At time.Time `json:"at"`
}
type AuditFilter ¶
type AuditFilter struct{ Bucket string }
type AutoBinding ¶
type AutoBinding struct {
HandoverSource string `json:"handoverSource,omitempty"`
DetachPending bool `json:"detachPending,omitempty"`
OwnerID string `json:"ownerID"`
PendingRevision uint64 `json:"pendingRevision,omitempty"`
ParentID string `json:"parentID"`
Identity string `json:"identity"`
GrantID string `json:"grantID"`
RegistrationID string `json:"registrationID,omitempty"`
State string `json:"state"`
ExpiresAt time.Time `json:"expiresAt"`
// Proof is server-verified, not a client assertion. No secret is stored.
ExpectedID string `json:"expectedID,omitempty"`
ExpectedOwner string `json:"expectedOwner,omitempty"`
ExpectedRevision uint64 `json:"expectedRevision,omitempty"`
}
type AutoExchange ¶
type DeviceAuthorization ¶
type DeviceAuthorization struct {
ScopeVersion int `json:"scopeVersion,omitempty"`
Scopes []string `json:"scopes,omitempty"`
Request DeviceRequest `json:"request"`
TokenID string `json:"tokenID"`
CodeHash string `json:"codeHash"`
UserHash string `json:"userHash"`
ExpiresAt time.Time `json:"expiresAt"`
CreatedAt time.Time `json:"createdAt"`
Status string `json:"status"`
GrantID string `json:"grantID,omitempty"`
ApprovedBy string `json:"approvedBy,omitempty"`
}
type DeviceRequest ¶
type DeviceResponse ¶
type DeviceTokenResponse ¶
type DeviceView ¶
type DeviceView struct {
Project, OwnerID, Harness, InstanceID, SessionID, Status, Nickname string
ClientID, CWDBasename string
CreatedAt, ExpiresAt time.Time
}
func (DeviceView) ShortSessionID ¶
func (v DeviceView) ShortSessionID() string
ShortSessionID keeps the review readable; the full value remains in title.
type DirectProof ¶
type DirectRequest ¶
type DirectRequest struct {
Holder *protocol.ReceiverHolder
HolderProof *protocol.HolderProof
Handover bool
PID int
CWD, ProcessKey string
DeviceRequest
RequestedNickname string
RegistrationID string
ResumeSecret string // transient proof only; never persisted or logged
}
type DirectResponse ¶
type DirectResponse struct {
HandoverFrom *protocol.HandoverFrom `json:"handover_from,omitempty"`
DeviceTokenResponse
Scopes []string `json:"scopes"`
AdmissionMode string `json:"admission_mode"`
RegistrationID string `json:"registration_id,omitempty"`
Revision uint64 `json:"revision,omitempty"`
}
type PendingRebind ¶
type PendingRebind struct {
Project string
Journal protocol.RebindJournal
}
type Project ¶
type Project struct {
ProjectGenerationID string `json:"projectGenerationId,omitempty"`
Rebinds []protocol.RebindJournal `json:"rebinds,omitempty"`
AutoBindings []AutoBinding `json:"autoBindings,omitempty"`
AutoExchanges []AutoExchange `json:"autoExchanges,omitempty"`
// AllowHTTP is the 0.7.0 per-project opt-in, kept only so older state
// decodes; the live policy is state.AllowHTTP.
AllowHTTP bool `json:"allowHTTP,omitempty"`
Devices []DeviceAuthorization `json:"devices,omitempty"`
Deleting bool `json:"deleting,omitempty"`
Members map[string]string `json:"members"`
Name string `json:"name"`
Mode string `json:"mode"`
Enabled bool `json:"enabled"`
Tokens []SessionToken `json:"tokens,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
}
type ProjectTokenOptions ¶
type ProjectTokenOptions struct {
Scopes []string
MaxAutoBindings int
AutoLifetimeDays int
UnlimitedAutoBindings bool
UnlimitedAutoLifetime bool
}
ProjectTokenOptions is copied and validated before an immutable issuance snapshot is committed. Nil Scopes preserves the historical LEGACY_V1 default; an explicit empty set is invalid. Limits apply only to auto admission.
type ScopeIssuanceChange ¶
type ScopeIssuanceChange struct {
Actor string `json:"actor"`
At time.Time `json:"at"`
Old policyBool `json:"old"`
New policyBool `json:"new"`
}
func (*ScopeIssuanceChange) UnmarshalJSON ¶
func (e *ScopeIssuanceChange) UnmarshalJSON(raw []byte) error
type Session ¶
type Session struct {
OwnerID string // Server-recorded registration owner; never supplied by a panel request.
RuntimeInfo *protocol.RuntimeInfoSnapshot
Activity *protocol.ActivitySnapshot
RegistrationID string
GrantID string
GrantOwner string
PendingNickname string
ID string
SessionID string
Name string
Status string
Harness string
PID int
Ready bool
ClientID string
LastSeen string
ProbePending bool
Suspended bool
ErrorCode string
}
Session is a presentation DTO; the panel has no harness/runtime dependency.
func (Session) ActivityTooltip ¶
func (Session) ActivityTooltipTimes ¶
func (Session) ActivityView ¶
ActivityView is the activity in the page's language; the API passes English.
func (Session) ConnectionLabel ¶
func (Session) DisplayState ¶
DisplayState is the one rule the session badge and the summary share (PM decision): a detached registration is history, an administrator's suspension comes next, a ready session can receive even if it reports an error code, an error code without readiness cannot be confirmed, and the rest is still waiting. ProbePending only adds a note; the protocol Status and StateReason stay visible beside the badge.
func (Session) RowShape ¶
A shape change needs a full reload: it must never silently replace identity, ownership or management controls under an open confirmation dialog.
func (Session) RuntimeInfoView ¶
func (Session) StateReason ¶
StateReason explains the runtime observation without changing its protocol status.
type SessionToken ¶
type SessionToken struct {
AdmissionMode string `json:"admissionMode,omitempty"`
IssuedBy string `json:"issuedBy,omitempty"`
MaxAutoBindings int `json:"maxAutoBindings,omitempty"`
ScopeVersion int `json:"scopeVersion,omitempty"`
Scopes []string `json:"scopes,omitempty"`
Kind string `json:"kind,omitempty"`
Label string `json:"label,omitempty"`
// Approvals and LastRegisteredAt keep a project token's history even after
// its session grants are revoked or expire and are swept away.
Approvals int `json:"approvals,omitempty"`
LastRegisteredAt time.Time `json:"lastRegisteredAt,omitempty"`
ParentID string `json:"parentID,omitempty"`
ExpiresAt time.Time `json:"expiresAt,omitempty"`
FirstUsedAt time.Time `json:"firstUsedAt,omitempty"`
LastUsedAt time.Time `json:"lastUsedAt,omitempty"`
OwnerID string `json:"ownerID"`
IssuedAt time.Time `json:"issuedAt"`
FirstConnectedAt time.Time `json:"firstConnectedAt,omitempty"`
ID string `json:"id"`
Nickname string `json:"nickname"`
PendingNickname string `json:"pendingNickname,omitempty"`
TokenHash string `json:"tokenHash,omitempty"`
BoundIdentity string `json:"boundIdentity,omitempty"`
Revoked bool `json:"revoked"`
RevokedAt time.Time `json:"revokedAt,omitempty"`
ExpiredAt time.Time `json:"expiredAt,omitempty"`
}
SessionToken reserves a nickname until revoked or its unused lifetime ends.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func OpenSQLite ¶
OpenSQLite is the production control store. Legacy JSON is imported once without rewriting it; all subsequent mutations are SQLite transactions.
func (*Store) AdminAPIEnabled ¶
func (*Store) AllowHTTP ¶
AllowHTTP reports whether a currently usable project has opted clients into sending credentials over HTTP. It deliberately fails closed.
func (*Store) AllowsUnauthenticated ¶
AllowsUnauthenticated remains for callers compiled against the old store API. Project access always requires a session token.
func (*Store) ApproveDeviceAuthorization ¶
func (s *Store) ApproveDeviceAuthorization(actor, code, nickname string, deny bool) (DeviceView, error)
func (*Store) AttachmentsEnabled ¶
func (*Store) Authenticate ¶
func (*Store) AuthenticateUser ¶
func (*Store) BeginDeviceAuthorization ¶
func (s *Store) BeginDeviceAuthorization(project, raw string, r DeviceRequest) (DeviceResponse, error)
func (*Store) BugReportPolicy ¶
BugReportPolicy acquires control before report locks. The caller MUST hold release through the complete report operation, including its SQLite commit. Empty actor is reserved for server-owned current-only operations; historical readers must supply an active instance administrator.
func (*Store) CanManageSession ¶
func (*Store) CanReleaseReservedGrant ¶
CanReleaseReservedGrant uses the same owner/role rule as the locked POST path.
func (*Store) ChangeOwnPassword ¶
ChangeOwnPassword verifies the current credential and publishes the new hash and login revision under one lock, including the fixed admin's legacy hash.
func (*Store) CleanupDetachedAutoBatch ¶
func (s *Store) CleanupDetachedAutoBatch(project, generation string, proofs []access.DetachedRemovalProof) error
Later proofs observe earlier mutations; policy and audit are committed together.
func (*Store) CreateProject ¶
func (*Store) CreateProjectFor ¶
func (*Store) CreateUser ¶
func (*Store) DeviceAuthorizationFor ¶
func (s *Store) DeviceAuthorizationFor(actor, code string) (DeviceView, error)
func (*Store) DirectAuditFor ¶
func (s *Store) DirectAuditFor(actor, project string) ([]AuditEvent, error)
Audit is not bearer-readable and preserves the existing panel role boundary.
func (*Store) DirectAuditRecordsFor ¶
func (s *Store) DirectAuditRecordsFor(actor, project string, filter AuditFilter) ([]AuditEvent, error)
DirectAuditRecordsFor exposes history only to instance administrators. project="" selects all projects for an administrator; ordinary readers must identify a current project and retain the Owner/Developer restrictions.
func (*Store) EditTokenScopesFor ¶
func (s *Store) EditTokenScopesFor(actor, project, id string, scopes, version []string) (TokenScopeEdit, error)
func (*Store) ExchangeDeviceToken ¶
func (s *Store) ExchangeDeviceToken(project, raw, code, clientID string, plaintext bool) (DeviceTokenResponse, error)
func (*Store) ExchangeDirect ¶
func (s *Store) ExchangeDirect(project, raw string, r DirectRequest, proof DirectProof, source string, plaintext bool) (DirectResponse, error)
func (*Store) ImportProjects ¶
ImportProjects adds legacy project directories without changing existing policy. Validation and persistence are atomic; an error never publishes a partial set.
func (*Store) InstanceHTTPPolicy ¶
InstanceHTTPPolicy reports the instance-wide HTTP opt-in for the admin UI.
func (*Store) IssueOwnUserToken ¶
func (s *Store) IssueOwnUserToken(actor string, revision uint64, label string, seconds int64, scopes []string, principalKey string, plaintext bool, admit ...func() bool) (string, UserTokenView, error)
IssueOwnUserToken binds panel issuance to the authenticated session revision.
func (*Store) IssueProjectTokenFor ¶
func (*Store) IssueProjectTokenWithOptionsFor ¶
func (s *Store) IssueProjectTokenWithOptionsFor(actor, project, label string, options ProjectTokenOptions) (string, error)
func (*Store) IssueTokenFor ¶
func (*Store) ListOwnUserTokens ¶
func (s *Store) ListOwnUserTokens(actor string) ([]UserTokenView, error)
func (*Store) PendingRebinds ¶
func (s *Store) PendingRebinds() []PendingRebind
func (*Store) PreviewTokenScopesFor ¶
func (s *Store) PreviewTokenScopesFor(actor, project, id string, scopes, version []string) (TokenScopeEdit, error)
func (*Store) ProjectGeneration ¶
ProjectGeneration returns server-owned identity, including during deletion.
func (*Store) ProjectRole ¶
func (*Store) ProjectsFor ¶
func (*Store) RecordSessionManagement ¶
func (*Store) RecoverRebind ¶
func (s *Store) RecoverRebind(project string, j protocol.RebindJournal, result protocol.RebindResult, applied bool) error
RecoverRebind is used before serving requests. No raw credential is needed; the runtime supplies proof read from the registration named by the journal.
func (*Store) RegistrationOwnerBindings ¶
RegistrationOwnerBindings takes a read-only snapshot before retention cleanup for startup migration. Values are server grant owner IDs, including revoked grants.
func (*Store) ReleaseDirectRegistration ¶
func (*Store) RevokeOwnUserToken ¶
func (*Store) RevokeOwnUserTokens ¶
func (*Store) RevokeSessionTokens ¶
RevokeSessionTokens releases reservations belonging to this exact detached session. The trusted runtime calls this after authorizing the UI operation, or when cleaning up an already detached registration. Matching the binding as well as the name protects a newly issued, unbound replacement token.
func (*Store) RevokeToken ¶
func (*Store) RevokeTokenFor ¶
func (*Store) RevokeUserTokensFor ¶
func (*Store) SaveProject ¶
SaveProject changes access policy. The legacy token argument must be empty; session credentials are generated by IssueToken, never supplied by a form.
func (*Store) SaveProjectFor ¶
func (*Store) SessionOwners ¶
SessionOwners names the account behind each bound session identity, using retained ownership bindings even after revocation. Displayed ownership does not grant management rights; those require current membership and role.
func (*Store) SetAdminAPI ¶
func (*Store) SetAllowsUnauthenticated ¶
SetAllowsUnauthenticated cannot re-enable the removed authentication mode.
func (*Store) SetAttachmentPolicy ¶
func (*Store) SetAttachmentStore ¶
func (s *Store) SetAttachmentStore(store *attachments.Store)
func (*Store) SetInstanceHTTPPolicy ¶
SetInstanceHTTPPolicy changes the credential-transport opt-in for every project. Only a system administrator may make this security decision, and live streams are interrupted only after the new policy is durable.
func (*Store) SetProjectMember ¶
func (*Store) SetScopeIssuanceReady ¶
func (*Store) SetupWithCode ¶
func (*Store) SweepExpired ¶
func (*Store) TokenScopeEditFor ¶
func (s *Store) TokenScopeEditFor(actor, project, id string) (TokenScopeEdit, error)
func (*Store) TransportPolicy ¶
TransportPolicy returns the instance HTTP opt-in for an enabled, non-deleting project. The second result intentionally combines missing and unavailable projects so the public endpoint reveals nothing about them.
func (*Store) UpdateLanguage ¶ added in v1.1.0
func (*Store) UpdateProfile ¶
UpdateProfile never accepts a target account or authorization fields. The caller supplies its authenticated actor; ordinary metadata keeps logins valid.
func (*Store) UpdateUser ¶
func (*Store) UserLanguage ¶ added in v1.1.0
UserLanguage returns an account preference without adding it to the persisted User.
func (*Store) UserTokensFor ¶
func (s *Store) UserTokensFor(actor, user string) ([]UserTokenView, error)
type TokenScopeAudit ¶
type TokenScopeEdit ¶
type TokenScopeEdit struct {
Project string `json:"project"`
ParentID string `json:"id"`
Label string `json:"label"`
OwnerID string `json:"ownerId"`
Scopes []string `json:"scopes"`
Version string `json:"settings_version"`
ChangedChildren int `json:"changedChildren"`
UsableChildren int `json:"usableChildren"`
Auto bool `json:"auto"`
MaxAutoBindings int `json:"maxAutoBindings"`
LifetimeDays int `json:"lifetimeDays"`
CanWiden bool `json:"canWiden"`
}
TokenScopeEdit contains only non-secret editor data; the version is not authorization.
type User ¶
type User struct {
DisplayName string `json:"displayName,omitempty"`
Email string `json:"email,omitempty"`
ID string `json:"id"`
Username string `json:"username"`
Role string `json:"role"`
Enabled bool `json:"enabled"`
Revision uint64 `json:"revision"`
}
User is a public account view. Verifiers are deliberately kept in a separate persistence record and can never be returned by listing or authentication.
type UserTokenView ¶
type UserTokenView struct {
ID string `json:"id"`
Label string `json:"label"`
Scopes []string `json:"scopes"`
Source string `json:"source"`
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
LastUsedAt time.Time `json:"last_used_at"`
}
UserTokenView never contains a digest or password verifier.
Source Files
¶
- admin_helpers.go
- admin_projections.go
- announcement.go
- api_admin.go
- api_admin_resources.go
- api_admin_settings.go
- api_audit_after.go
- api_http.go
- api_panel_http.go
- api_panel_store.go
- api_projects.go
- api_tokens.go
- assets_http.go
- attachment_disk.go
- attachment_setting.go
- bug_reports.go
- bug_reports_delete.go
- commit_guard.go
- compression.go
- detached_cleanup.go
- device_auth.go
- device_http.go
- direct.go
- direct_audit_panel.go
- direct_http.go
- direct_rate.go
- direct_registration.go
- direct_state.go
- feedback_http.go
- generation_history_view.go
- http.go
- i18n_render.go
- instance_policy.go
- instance_policy_http.go
- language.go
- lock_unix.go
- login_return.go
- manual_rebind.go
- member_http.go
- migrations.go
- nickname.go
- panel_commands.go
- password.go
- profile.go
- profile_http.go
- project_data_error.go
- project_delete.go
- project_generation.go
- project_refusal.go
- reserved_grants.go
- scope_issuance_setting.go
- session_activity.go
- session_live.go
- session_management.go
- session_retire.go
- session_runtime_info.go
- session_tokens.go
- session_view.go
- settings_version.go
- setup_code.go
- sqlite.go
- store.go
- suspension_policy.go
- token_cap.go
- token_history.go
- token_issuance.go
- token_result_http.go
- token_scope_edit.go
- token_scope_edit_http.go
- token_scope_panel.go
- token_scope_view.go
- token_scopes.go
- token_submission.go
- token_view.go
- transport.go
- users.go