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] User handling + authentication #17

Open
4 tasks done
angel-penchev opened this issue Sep 30, 2021 · 0 comments
Open
4 tasks done

[Feat] User handling + authentication #17

angel-penchev opened this issue Sep 30, 2021 · 0 comments
Assignees
Labels
feature New feature or request server Tasks regarding the backend server

Comments

@angel-penchev
Copy link
Member

angel-penchev commented Sep 30, 2021

Describe the feature you'd like
Implement the following authentication methods:

  • Login with regular credentials
  • Login with a Google account
  • Login with a Discord account
  • Login with a GitHub account

Also ensure that session information is not being lost on server restart.

Additional context
Nest.JS Tutorial Part #2 - Setting up Passport, OAuth2, TypeORM, Sessions, Session Store, Database by Anson the Developer
Passport.js documentation

@angel-penchev angel-penchev added feature New feature or request server Tasks regarding the backend server labels Sep 30, 2021
@angel-penchev angel-penchev added this to the Inovation Hub Sprint milestone Sep 30, 2021
@angel-penchev angel-penchev self-assigned this Sep 30, 2021
angel-penchev added a commit that referenced this issue Oct 17, 2021
Created google authentication mechanisms using Passport.js.
References #17.
angel-penchev added a commit that referenced this issue Oct 17, 2021
Created discord authentication mechanisms using Passport.js.
References #17.
angel-penchev added a commit that referenced this issue Oct 17, 2021
Created github authentication mechanisms using Passport.js.
References #17.
angel-penchev added a commit that referenced this issue Oct 17, 2021
Created local authentication mechanisms using Passport.js.
Added request body validation globally.
References #17.
angel-penchev added a commit that referenced this issue Oct 17, 2021
Session information is now kept in the database, rather than in memory.
Resolves #17.
angel-penchev added a commit that referenced this issue Oct 18, 2021
Resolved an error during authentication.
References #17.
angel-penchev added a commit that referenced this issue Oct 18, 2021
Added unit tests for the UsersService.
References #17.
angel-penchev added a commit that referenced this issue Oct 19, 2021
Added proper password validation on login.
Fixed the cardinal sin of saving a password in plain-text.
Refactored AuthService.findUser to be easier to use.
Session serializer now stores only user ids in the cookie.
Adapted UserService unit tests to the changes.
Resolves #17.
angel-penchev added a commit that referenced this issue Oct 19, 2021
Added proper password validation on login.
Fixed the cardinal sin of saving a password in plain-text.
Refactored AuthService.findUser to be easier to use.
Session serializer now stores only user ids in the cookie.
Adapted UserService unit tests to the changes.
Resolves #17.
angel-penchev added a commit that referenced this issue Oct 19, 2021
Added proper password validation on login.
Fixed the cardinal sin of saving a password in plain-text.
Refactored AuthService.findUser to be easier to use.
Session serializer now stores only user ids in the cookie.
Adapted UserService unit tests to the changes.
Resolves #17.
angel-penchev added a commit that referenced this issue Oct 19, 2021
Added proper password validation on login.
Fixed the cardinal sin of saving a password in plain-text.
Refactored AuthService.findUser to be easier to use.
Session serializer now stores only user ids in the cookie.
Adapted UserService unit tests to the changes.
Resolves #17.
angel-penchev added a commit that referenced this issue Oct 20, 2021
Now when a new user is registered, a code snippets storage is created.
References #17, #18.
angel-penchev added a commit that referenced this issue Oct 21, 2021
Resolved an issue where createUser was encrypting an empty password.
References #17.
angel-penchev added a commit that referenced this issue Oct 23, 2021
Made the API login endpoints redirect to the client application.
References #17, #21.
angel-penchev added a commit that referenced this issue Oct 23, 2021
Enabled CORS with the front-end client.
References #17 and #21.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request server Tasks regarding the backend server
Projects
None yet
Development

No branches or pull requests

1 participant