Documentation
¶
Index ¶
Constants ¶
View Source
const (
PubsubEventLicenses = "licenses"
)
View Source
const TimeFormatHHMM = "15:04"
Variables ¶
View Source
var SCIMAuditAdditionalFields = map[string]string{
"automatic_actor": "coder",
"automatic_subsystem": "scim",
}
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { AGPL *coderd.API *Options // ProxyHealth checks the reachability of all workspace proxies. ProxyHealth *proxyhealth.ProxyHealth // contains filtered or unexported fields }
func New ¶
New constructs an Enterprise coderd API instance. This handler is designed to wrap the AGPL Coder code and layer Enterprise functionality on top as much as possible.
func (*API) RequireFeatureMW ¶ added in v2.14.0
type Options ¶
type Options struct { *coderd.Options RBAC bool AuditLogging bool // Whether to block non-browser connections. BrowserOnly bool SCIMAPIKey []byte ExternalTokenEncryption []dbcrypt.Cipher // Used for high availability. ReplicaSyncUpdateInterval time.Duration ReplicaErrorGracePeriod time.Duration DERPServerRelayAddress string DERPServerRegionID int // Used for user quiet hours schedules. DefaultQuietHoursSchedule string // cron schedule, if empty user quiet hours schedules are disabled EntitlementsUpdateInterval time.Duration ProxyHealthInterval time.Duration LicenseKeys map[string]ed25519.PublicKey // optional pre-shared key for authentication of external provisioner daemons ProvisionerDaemonPSK string CheckInactiveUsersCancelFunc func() }
type SCIMUser ¶
type SCIMUser struct { Schemas []string `json:"schemas"` ID string `json:"id"` UserName string `json:"userName"` Name struct { GivenName string `json:"givenName"` FamilyName string `json:"familyName"` } `json:"name"` Emails []struct { Primary bool `json:"primary"` Value string `json:"value" format:"email"` Type string `json:"type"` Display string `json:"display"` } `json:"emails"` // Active is a ptr to prevent the empty value from being interpreted as false. Active *bool `json:"active"` Groups []interface{} `json:"groups"` Meta struct { ResourceType string `json:"resourceType"` } `json:"meta"` }
We currently use our own struct instead of using the SCIM package. This was done mostly because the SCIM package was almost impossible to use. We only need these fields, so it was much simpler to use our own struct. This was tested only with Okta.
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package httpmw contains middleware for HTTP handlers.
|
Package httpmw contains middleware for HTTP handlers. |
Package license provides the license parsing and validation logic for Coderd.
|
Package license provides the license parsing and validation logic for Coderd. |
Click to show internal directories.
Click to hide internal directories.