mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-24 20:18:13 +02:00
config: allow setting directory sync interval and timeout (#1098)
Updates #567
This commit is contained in:
parent
25867501d4
commit
821f2e9000
6 changed files with 44 additions and 4 deletions
10
cache/cache.go
vendored
10
cache/cache.go
vendored
|
@ -78,7 +78,15 @@ func New(opts config.Options) (*Cache, error) {
|
|||
userServer := NewUserServer(localGRPCServer, dataBrokerClient)
|
||||
userClient := user.NewUserServiceClient(localGRPCConnection)
|
||||
|
||||
manager := manager.New(authenticator, directoryProvider, sessionClient, userClient, dataBrokerClient)
|
||||
manager := manager.New(
|
||||
authenticator,
|
||||
directoryProvider,
|
||||
sessionClient,
|
||||
userClient,
|
||||
dataBrokerClient,
|
||||
manager.WithGroupRefreshInterval(opts.RefreshDirectoryInterval),
|
||||
manager.WithGroupRefreshTimeout(opts.RefreshDirectoryTimeout),
|
||||
)
|
||||
|
||||
return &Cache{
|
||||
dataBrokerServer: dataBrokerServer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue