Skip to content

config not working with sequence middleware #181

@moetezch

Description

@moetezch

I registered the rate limiter like the following but it is enabled for all routes

To Reproduce

   this.bind(RateLimitSecurityBindings.RATELIMITCONFIG).to({
      RatelimitActionMiddleware: true,
    });
    this.bind(RateLimitSecurityBindings.CONFIG).to({
      name: 'redis',
      type: 'RedisStore',
      enabledByDefault: false,
    });
    this.component(RateLimiterComponent );

Expected behavior

rateLimit should be disabled for all routes

Additional context

 "loopback4-ratelimiter": "7.0.2"
  "@loopback/core": "6.0.2",
  "@loopback/express": "7.0.2",

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions