Versions in this module Expand all Collapse all v0 v0.0.2 Nov 17, 2026 Changes in this version + var ErrClientExists = errors.New("identity: client already exists") + var ErrClientNotFound = errors.New("identity: client not found") + var ErrConnectorExists = errors.New("identity: connector already exists") + var ErrConnectorNotFound = errors.New("identity: connector not found") + func ConnectorType(c ConnectorConfig) string + type Broker interface + Clients func() ClientStore + Connectors func() ConnectorStore + Handler func() http.Handler + type Client struct + ID string + LogoURL string + Name string + Public bool + RedirectURIs []string + TrustedPeers []string + type ClientStore interface + Create func(ctx context.Context, c Client) (secret string, err error) + Delete func(ctx context.Context, id string) error + Get func(ctx context.Context, id string) (Client, error) + List func(ctx context.Context) ([]Client, error) + RotateSecret func(ctx context.Context, id string) (secret string, err error) + Update func(ctx context.Context, c Client) error + type ConfigSealer interface + Open func(sealed []byte) ([]byte, error) + Seal func(plaintext []byte) ([]byte, error) + type Connector struct + Config ConnectorConfig + ID string + Name string + type ConnectorConfig interface + type ConnectorStore interface + Create func(ctx context.Context, c Connector) error + Delete func(ctx context.Context, id string) error + Get func(ctx context.Context, id string) (Connector, error) + List func(ctx context.Context) ([]Connector, error) + Update func(ctx context.Context, c Connector) error + type GitHubConnectorConfig struct + ClientID string + ClientSecret SecretRef + HostName string + Orgs []GitHubOrg + RedirectURI string + RootCA string + type GitHubOrg struct + Name string + Teams []string + type GoogleConnectorConfig struct + ClientID string + ClientSecret SecretRef + HostedDomains []string + RedirectURI string + type LDAPConnectorConfig struct + BindDN string + BindSecret SecretRef + GroupSearch LDAPGroupSearch + Host string + InsecureSkipVerify bool + StartTLS bool + UserSearch LDAPUserSearch + type LDAPGroupSearch struct + BaseDN string + Filter string + NameAttr string + UserMatchers []LDAPUserMatcher + type LDAPUserMatcher struct + GroupAttr string + UserAttr string + type LDAPUserSearch struct + BaseDN string + EmailAttr string + Filter string + IDAttr string + NameAttr string + Username string + type MicrosoftConnectorConfig struct + ClientID string + ClientSecret SecretRef + Groups []string + OnlySecurityGroups bool + Tenant string + type OIDCConnectorConfig struct + ClientID string + ClientSecret SecretRef + InsecureSkipVerify bool + IssuerURL string + RedirectURI string + Scopes []string + type OpaqueConnectorConfig struct + RawConfig json.RawMessage + Type string + type SAMLConnectorConfig struct + CARef SecretRef + EmailAttr string + EntityIssuer string + GroupsAttr string + GroupsDelim string + NameIDPolicyFormat string + RedirectURI string + SSOIssuer string + SSOURL string + UsernameAttr string + type SecretRef struct + Key string + Name string + Namespace string + type SeedFunc func(ctx context.Context, b Broker) error + type StartupSeeder interface + Name func() string + Seed func(ctx context.Context, b Broker) error + func Named(name string, fn SeedFunc) StartupSeeder