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

User Authentication #9

Closed
11 of 21 tasks
Tracked by #3
nok-ko opened this issue Dec 24, 2021 · 1 comment
Closed
11 of 21 tasks
Tracked by #3

User Authentication #9

nok-ko opened this issue Dec 24, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@nok-ko
Copy link
Owner

nok-ko commented Dec 24, 2021

Tasks: (Server-side)

  • Hash user passwords.
    • Done using the bcrypt module.
  • On login:
    • Accept an email/password pair as query parameters on the /login endpoint…
    • Check if a user with this email exists…
      • If user does not exist, send back an error.
    • Check if the password hashes alike to the hash we have stored for that user…
      • If hashes don't match, send back an error.
    • Generate a session token and log the user in if the hashes match.
      • Send back a success message with the token and some user info on successful login.
    • Use exponential timeouts for failing login attempts. (Not allowed to do another one for 1 second, 1 second, 1 second, 10 seconds, 100 seconds…)
    • Also implement other bot/spam prevention measures on this endpoint!
  • On signup:

Tasks: (Client-side)

This was referenced Dec 24, 2021
@nok-ko nok-ko changed the title Set up username+password authentication, use SQLite as the database User Authentication Dec 24, 2021
@nok-ko nok-ko added the enhancement New feature or request label Dec 24, 2021
@nok-ko nok-ko self-assigned this Dec 24, 2021
@nok-ko nok-ko added this to In Progress in Chess Project Dec 24, 2021
@nok-ko
Copy link
Owner Author

nok-ko commented Dec 25, 2021

Currently good enough, closing for now.

@nok-ko nok-ko closed this as completed Dec 25, 2021
@nok-ko nok-ko moved this from In Progress to Done in Chess Project Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant