website-backend icon indicating copy to clipboard operation
website-backend copied to clipboard

Create middleware to validate if user is part of Discord

Open surajmaity1 opened this issue 8 months ago • 3 comments

Issue Description

Create a middleware to check if the user is part of Discord or not.

Current Behavior

We are checking in every controller if the user is part of Discord. Ideally, there should be a middleware that performs this check before reaching the controller.

Expected Behavior

A middleware should be implemented to verify whether the user is part of Discord. If the user is not part of Discord, the middleware should return a 403 Forbidden response, preventing any further operations. This middleware can be reused across routes that require this validation. It can be integrated into relevant route handlers to ensure that only authorized users who are members of Discord can access the protected resources or perform specific actions.

Screenshots

Reproducibility

  • [ ] This issue is reproducible
  • [x] This issue is not reproducible

Steps to Reproduce

Severity/Priority

  • [ ] Critical
  • [ ] High
  • [x] Medium
  • [ ] Low

Checklist

  • [x] I have read and followed the project's code of conduct.
  • [x] I have searched for similar issues before creating this one.
  • [x] I have provided all the necessary information to understand and reproduce the issue.
  • [x] I am willing to contribute to the resolution of this issue.

surajmaity1 avatar Apr 30 '25 06:04 surajmaity1

Hi! I'm interested in working on this issue. Could you please assign it to me?

parasdhoon avatar May 17 '25 05:05 parasdhoon

Hi, I'd love to work on this issue as part of my open source contributions. Please assign it to me if it's still available. Thanks! 😊

Sachin-Hugar avatar Jul 10 '25 06:07 Sachin-Hugar

Hi! I’m interested in working on this issue. Could you please assign it to me?

PoornimaBaste avatar Oct 08 '25 16:10 PoornimaBaste