mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +02:00
remove the legacy identity manager (#5528)
This commit is contained in:
parent
bdfc17d1ce
commit
562101ae03
12 changed files with 4 additions and 1482 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue