Auth token pagination (#4113)
* Add pagination support for auth tokens * change analyze count estimate comment * adjust queries for efficiency and security * even more efficient queries
This commit is contained in:
1 parent
48e8d454a4
commit
6ba3676c37
18 files changed
+2222
-176
No files matched your search
@@ -171,7 +171,7 @@ func (c *Controller) registerGrpcServices(s *grpc.Server) error {
|
||||
services.RegisterAuthMethodServiceServer(s, authMethods)
|
||||
}
|
||||
if _, ok := currentServices[services.AuthTokenService_ServiceDesc.ServiceName]; !ok {
|
||||
authtoks, err := authtokens.NewService(c.baseContext, c.AuthTokenRepoFn, c.IamRepoFn)
|
||||
authtoks, err := authtokens.NewService(c.baseContext, c.AuthTokenRepoFn, c.IamRepoFn, c.conf.RawConfig.Controller.MaxPageSize)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create auth token handler service: %w", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user