Fix undefined staticFileRateLimit in auth server
- Add missing staticFileRateLimit definition in auth-server/index.ts - Resolves compilation error in auth server build - Addresses PR check failure about missing rate limiting on line 123
This commit is contained in:
parent
ecd82f43c9
commit
4e3414fe9c
1 changed files with 6 additions and 0 deletions
|
|
@ -73,6 +73,12 @@ const fakeAuthRateLimit = rateLimit({
|
|||
message: { error: 'too_many_requests', error_description: 'Authentication rate limit exceeded' }
|
||||
});
|
||||
|
||||
const staticFileRateLimit = rateLimit({
|
||||
windowMs: 10 * 60 * 1000, // 10 minutes
|
||||
limit: 25, // 25 requests per 10 minutes for static files
|
||||
message: { error: 'too_many_requests', error_description: 'Static file rate limit exceeded' }
|
||||
});
|
||||
|
||||
// Token introspection endpoint (RFC 7662)
|
||||
app.post('/introspect', introspectRateLimit, express.urlencoded({ extended: false }), async (req, res) => {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue