Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Auth middlewares #32

Merged
merged 8 commits into from
Sep 25, 2023
Merged

feat: Auth middlewares #32

merged 8 commits into from
Sep 25, 2023

Conversation

PedroChaparro
Copy link
Member

Includes 📋

  • Authentication middleware (Provides a valid JWT)
  • Authorization middleware (Request has the given role)
  • Use middlewares to prevent non-admins to register new admins
  • Update tests

Related Issues 🔎

Closes #20, #15, #12

@PedroChaparro PedroChaparro added bug 🐞 Something isn't working enhancement New feature or request ✨ feat A new feature is implemented labels Sep 25, 2023
@PedroChaparro PedroChaparro self-assigned this Sep 25, 2023
@PedroChaparro PedroChaparro merged commit 8646b08 into dev Sep 25, 2023
3 checks passed
@PedroChaparro PedroChaparro deleted the feat/#20_auth_middlewares branch September 25, 2023 00:54
PedroChaparro added a commit that referenced this pull request Sep 25, 2023
* feat(accounts): Register student (#25)

* feat(accounts): Register admin (#30)

* feat(session): Login endpoint (#31)

* feat(session): Auth middlewares (#32)

* feat(accounts): Register teacher (#33)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working enhancement New feature or request ✨ feat A new feature is implemented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant