[Story] Create User Sessions #5

Closed
opened 2025-10-22 21:47:47 +02:00 by Janis · 1 comment
Owner

🧍‍♂️ User Story

As a User
I want to be able to login
So that I don't need to enter my name for each game.


📋 Description

Create a User DO which contains the name, a password (hashed + salt) and the current session id.
Create a user session which is placed in the cookies of the users browser (overwrite). This can be used to retrieve the user with a PlayerManager.
Change the root route to a main menu where the user can enter their username and password.
For now implement a stub PlayerManager with a Set as Users.


🎯 Acceptance Criteria

  • Add a UserDO with a hashed password
  • Add a User Session and save it to the browser
  • Create a simple login screen.
  • Create a Stub Player Manager

🧱 Implementation Notes

  • Use SHA256 as a hashing algorithm with 32 chars as salt
  • There's a header you can send back to add a cookie to the browser of the User. (Maybe there is a better way in Play tho)

🧵 Linked Issues

  • Parent Epic: #
## 🧍‍♂️ User Story **As a** User **I want to** be able to login **So that** I don't need to enter my name for each game. --- ## 📋 Description Create a User DO which contains the name, a password (hashed + salt) and the current session id. Create a user session which is placed in the cookies of the users browser (overwrite). This can be used to retrieve the user with a PlayerManager. Change the root route to a main menu where the user can enter their username and password. For now implement a stub PlayerManager with a Set as Users. --- ## 🎯 Acceptance Criteria - [x] Add a UserDO with a hashed password - [x] Add a User Session and save it to the browser - [x] Create a simple login screen. - [x] Create a Stub Player Manager --- ## 🧱 Implementation Notes * Use SHA256 as a hashing algorithm with 32 chars as salt * There's a header you can send back to add a cookie to the browser of the User. (Maybe there is a better way in Play tho) --- ## 🧵 Linked Issues - Parent Epic: #<epic-number>
Janis added the
Priority
High
2
Size
M
3
Type
User Story
2
labels 2025-10-22 21:47:47 +02:00
Janis added the
Kind/Feature
label 2025-10-22 21:48:37 +02:00
Janis added
Priority
Low
4
and removed
Priority
High
2
labels 2025-10-22 21:54:06 +02:00
Janis added this to the Kubernetes Support - No priority project 2025-10-22 22:10:23 +02:00
Author
Owner

Switched to Argon2 for Hashing

Switched to Argon2 for Hashing
Janis self-assigned this 2025-10-30 10:42:08 +01:00
Janis closed this issue 2025-11-01 20:44:50 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KnockOutWhist/KnockOutWhist-Web#5
No description provided.