Skip to content

Commit

Permalink
wip add auth middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
hichri-louay committed Mar 13, 2024
1 parent 93bf5ab commit 9040748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes/external.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ router.post(

router.post('/apply', verifyAuthExternal, externalApply)

router.post('/checkHarvest', verifySignatureMiddleware, checkHarvest)
router.post('/checkHarvest', verifyAuthExternal, checkHarvest)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a database access
, but is not rate-limited.

router.post('/externalAnswer', verifySignatureMiddleware, externalAnswer)
router.post('/externalGains', verifySignatureMiddleware, externalGains)
router.post('/externalAnswer', verifyAuthExternal, externalAnswer)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
router.post('/externalGains', verifyAuthExternal, externalGains)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.

module.exports = router

0 comments on commit 9040748

Please sign in to comment.