Versions in this module Expand all Collapse all v0 v0.13.0 Oct 7, 2026 Changes in this version + var ErrNotProductionReady = errors.New("systemauthsvc: refusing to start in production mode") + func CheckProduction(cfg *Config, opts Options) error + func Migrate(ctx context.Context, cfg *Config) (err error) + func NewLogger(w io.Writer, level, format string) (*slog.Logger, error) + type Config = systemauth.Config + func LoadConfig(path string, overrides ...Override) (*Config, error) + func LoadConfigBytes(data []byte, format string, overrides ...Override) (*Config, error) + type Database struct + Client *ent.Client + DB *sql.DB + func OpenDatabase(cfg *systemauth.DatabaseConfig) (*Database, error) + func (d *Database) Close() error + type Options struct + DB *sql.DB + DBDialect string + Dev bool + EntClient *ent.Client + Logger *slog.Logger + Migrate bool + ServerOptions []systemauth.Option + SigningKey *rsa.PrivateKey + type Override func(*Config) error + func WithDatabase(driver, dsn string) Override + func WithDefaultIssuer(issuer string) Override + func WithDefaultSigningKeyPEM(pem string) Override + func WithIssuer(issuer string) Override + func WithKeyID(kid string) Override + func WithSigningKeyFile(path string) Override + type Service struct + func New(ctx context.Context, cfg *Config, opts Options) (*Service, error) + func (s *Service) Close() error + func (s *Service) Config() Config + func (s *Service) Discovery() systemauth.OpenIDConfiguration + func (s *Service) EntClient() *ent.Client + func (s *Service) Handler() http.Handler + func (s *Service) Issuer() string + func (s *Service) KeyID() string + func (s *Service) Metadata() relyingparty.Metadata + func (s *Service) Migrate(ctx context.Context) error + func (s *Service) Ready(ctx context.Context) error + func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Service) Server() *systemauth.Server + func (s *Service) StorageName() string