remove the legacy identity manager (#5528)

This commit is contained in:
Kenneth Jenkins 2025-03-17 11:59:02 -07:00 committed by GitHub
parent bdfc17d1ce
commit 562101ae03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 4 additions and 1482 deletions

View file

@ -23,7 +23,6 @@ type config struct {
leaseTTL time.Duration
now func() time.Time
eventMgr *events.Manager
enabled bool
}
func newConfig(options ...Option) *config {
@ -32,7 +31,6 @@ func newConfig(options ...Option) *config {
WithSessionRefreshCoolOffDuration(defaultSessionRefreshCoolOffDuration)(cfg)
WithNow(time.Now)(cfg)
WithUpdateUserInfoInterval(defaultUpdateUserInfoInterval)(cfg)
WithEnabled(true)(cfg)
WithLeaseTTL(defaultLeaseTTL)(cfg)
for _, option := range options {
option(cfg)
@ -85,13 +83,6 @@ func WithEventManager(mgr *events.Manager) Option {
}
}
// WithEnabled sets the enabled option in the config.
func WithEnabled(enabled bool) Option {
return func(cfg *config) {
cfg.enabled = enabled
}
}
// WithUpdateUserInfoInterval sets the update user info interval in the config.
func WithUpdateUserInfoInterval(dur time.Duration) Option {
return func(cfg *config) {