Skip to content

Commit

Permalink
Fix NewTestAuthServer
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet committed Aug 6, 2024
1 parent 472ac5c commit 3dc3ff1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/auth/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,13 @@ func NewTestAuthServer(cfg TestAuthServerConfig) (*TestAuthServer, error) {

if cfg.CacheEnabled {
srv.AuthServer.Cache, err = accesspoint.NewAccessCache(accesspoint.AccessCacheConfig{
Context: srv.AuthServer.CloseContext(),
Services: srv.AuthServer.Services,
Setup: cache.ForAuth,
CacheName: []string{teleport.ComponentAuth},
Events: true,
Unstarted: true,
Context: srv.AuthServer.CloseContext(),
Services: srv.AuthServer.Services,
SPIFFEFederationsService: srv.AuthServer.Services.SPIFFEFederations,
Setup: cache.ForAuth,
CacheName: []string{teleport.ComponentAuth},
Events: true,
Unstarted: true,
})
if err != nil {
return nil, trace.Wrap(err)
Expand Down

0 comments on commit 3dc3ff1

Please sign in to comment.