BenBolthouse / nice-bytes

A clone of the popular website GoodReads where users can rate and share restaurants.
6 stars 1 forks source link

User Login & Logout (Authentication) #5

Closed BenBolthouse closed 3 years ago

BenBolthouse commented 3 years ago

Story

https://github.com/BenBolthouse/nice-bytes/wiki/User-Stories#user-login--logout

Q & A

    • [ ] How does the NiceBytes application handle secure login?
        • [ ] NiceBytes leverages JWT authentication in Node for secure login
    • [ ] How long will a user remain logged in until they are automatically logged out due to inactivity?
        • [ ] 24 hours
        • [ ] A user's session expiration and JWT expiration will be set 24 hours from the time of the user's last HTTP request
    • [ ] How is a user made aware that they are logged in or logged out of the web application?
        • [ ] A component of the website that shows on every page displays the username and other details of the user while logged in
        • [ ] The abovementioned component instead shows a prompt to login or register if the user is not logged in
    • [ ] Where can a user go to login?
        • [ ] A dedicated login page located at the url http://nicebytes.com/login
        • [ ] Links to the dedicated login page are visible from every page of the website
    • [ ] What information does the user need to provide to login?
        • [ ] The user's email address
        • [ ] The user's chosen password
    • [ ] What happens when the user submits their request to login?
        • [ ] If the request is invalid then the login view notifies the user of which fields to correct
        • [ ] If the request is valid and the login is successful then return the user to the location that they were in prior to login
        • [ ] If successful, the user receives a JWT from the application and is authorized to access certain resources until logout
    • [ ] Where can a user go to logout?
        • [ ] The webpage component that displays the username of the logged in user also presents an option to log out
    • [ ] What happens when the user submits their request to logout?
        • [ ] They are redirected to the login page