Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientsModel ¶
type ClientsModel struct {
}
type ErrorModel ¶
type IndexModel ¶
type IndexModel struct {
Urls []UrlInfo
Clients []*configuration.ClientConfig
}
type SCIMModel ¶ added in v0.3.0
type SCIMModel struct {
Configured bool // an endpoint is set
Endpoint string
TokenConfigured bool
UserCount int
HasRun bool
RanAt string
Total int
Failed int
Results []SCIMResultRow
}
SCIMModel is the view model for the provisioning page.
func NewSCIMModel ¶ added in v0.3.0
func NewSCIMModel(cfg *configuration.SCIMConfig, tokenConfigured bool, userCount int, report *scim.Report) SCIMModel
NewSCIMModel builds the provisioning view model from the SCIM config and the last sync report (which may be nil when a sync has never run).
type SCIMResultRow ¶ added in v0.3.0
type SCIMResultRow struct {
Subject string
UserName string
Action string // created | updated | failed
Error string
}
SCIMResultRow is a single displayable per-user provisioning outcome.
type UserLoginModel ¶
type UserLoginModel struct {
Error string
AuthRequestID string
Users []UserOption
}
type UserOption ¶
type UserView ¶ added in v0.2.0
UserView is a user prepared for display, with its claims flattened into an ordered list of name/value rows (including any custom claims).
type UsersModel ¶
type UsersModel struct {
Users []UserView
}
func NewUsersModel ¶ added in v0.2.0
func NewUsersModel(users []*configuration.User) UsersModel
NewUsersModel builds the users view model from the configured users, flattening each user's claims into ordered rows so they can be rendered without the UI needing to know about every individual claim field.