Documentation
¶
Index ¶
- func AccessTokenRevocationMarkerTTL(accessTokenTTL time.Duration) time.Duration
- func CheckSchemaVersion(store *store.Store, required int) error
- func EnsureOrganizationMode(store *store.Store, mode string) error
- func NewAccessTokenRevocations(cfg *config.Config, backend cache.Cache, ttlProvider func() time.Duration) *token.AccessTokenRevocations
- func NewCache(cfg *config.Config) (cache.Cache, error)
- func NewHTTPServer(app *App, version string) (*httpserver.Server, error)
- func NewLogger(cfg *config.Config) (*slog.Logger, error)
- func NewStore(cfg *config.Config) (*store.Store, error)
- type App
- type BackgroundWorkers
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessTokenRevocationMarkerTTL ¶ added in v0.22.0
AccessTokenRevocationMarkerTTL keeps markers long enough for any access token issued under the operator-configurable maximum lifetime.
func EnsureOrganizationMode ¶ added in v0.1.24
func NewAccessTokenRevocations ¶ added in v0.22.0
func NewAccessTokenRevocations( cfg *config.Config, backend cache.Cache, ttlProvider func() time.Duration, ) *token.AccessTokenRevocations
NewAccessTokenRevocations binds token validation to the revocation guarantee selected at startup. The expiry-only mode intentionally has no online store.
func NewHTTPServer ¶ added in v0.1.21
func NewHTTPServer(app *App, version string) (*httpserver.Server, error)
Types ¶
type App ¶ added in v0.1.21
type App struct {
Config *config.Service
Logger *slog.Logger
Observability *observability.Service
QueueMonitor *observability.QueueMonitor
Maintenance *maintenance.Coordinator
Store *store.Store
Cache cache.Cache
Services Services
}
func (*App) StartBackgroundWorkers ¶ added in v0.1.21
func (a *App) StartBackgroundWorkers(ctx context.Context) *BackgroundWorkers
type BackgroundWorkers ¶ added in v0.22.0
type BackgroundWorkers struct {
// contains filtered or unexported fields
}
func (*BackgroundWorkers) Errors ¶ added in v0.22.0
func (w *BackgroundWorkers) Errors() <-chan error
type Services ¶ added in v0.1.21
type Services struct {
Admin *admin.Service
Auth *auth.Service
Passkeys *passkey.Service
Session *session.Service
Organizations *organization.Service
Challenge *challenge.Service
Verification *challenge.VerificationCodeService
EmailTemplates *email.TemplateService
EmailWorker *challenge.Worker
WebhookWorker *webhook.Worker
OAuthProviders oauth.OAuthProviders
SecurityEvents *securityevent.Service
Apple *apple.Client
AppleCredentials *apple.Credentials
Microsoft *microsoft.Client
}
func NewServices ¶ added in v0.1.21
Click to show internal directories.
Click to hide internal directories.