Skip to content

Jwt implementation #19

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

Merged
merged 6 commits into from
Jun 24, 2024
Merged

Jwt implementation #19

merged 6 commits into from
Jun 24, 2024

Conversation

lolgame99
Copy link
Contributor

  • Refactoring

    • Reverted courtIds -> courtId in Reservation
    • Refactored negative Reservation events to reflect new changes
  • Added JWT Authentication via public key (lifetime is currently not checked)

  • Refactored Queries to extract memberId and clubId from JWT token

  • Refactored Command Endpoints to only allow requests from members

  • Refactored Create & Join Endpoints to extract memberId from JWT token

  • Implemented check on Cancel endpoint to ensure members can only cancel their own playoffer

@lolgame99 lolgame99 requested a review from CengoleFHV June 23, 2024 08:24
@lolgame99 lolgame99 self-assigned this Jun 23, 2024
Copy link
Contributor

@CengoleFHV CengoleFHV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🥇

@CengoleFHV CengoleFHV merged commit 9cd6767 into dev Jun 24, 2024
1 check passed
@CengoleFHV CengoleFHV deleted the jwt_implementation branch June 24, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants